1
0
mirror of https://github.com/namibia/tips.git synced 2024-11-13 08:46:29 +00:00

tried with alternatives

This commit is contained in:
Anchal 2015-07-17 12:27:32 +05:30
parent 04f388e191
commit 9cc9a46519
2 changed files with 20 additions and 1 deletions

View File

@ -16,6 +16,9 @@
* [Delete remote branch](https://github.com/git-tips/tips#delete-remote-branch)
* [Undo local changes with the last content in head](https://github.com/git-tips/tips#undo-local-changes-with-the-last-content-in-head)
* [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url)
* [Get list of all remote references](https://github.com/git-tips/tips#get-list-of-all-remote-references)
* [Get list of all local and remote branches](https://github.com/git-tips/tips#get-list-of-all-local-and-remote-branches)
* [Get only remote branches](https://github.com/git-tips/tips#get-only-remote-branches)
* [Stage parts of a changed file, instead of the entire file](https://github.com/git-tips/tips#stage-parts-of-a-changed-file-instead-of-the-entire-file)
* [Get git bash completion](https://github.com/git-tips/tips#get-git-bash-completion)
@ -90,6 +93,21 @@ git checkout -- <file_name>
git remote set-url origin <URL>
```
## Get list of all remote references
```sh
git remote
```
## Get list of all local and remote branches
```sh
git branch -a
```
## Get only remote branches
```sh
git branch -r
```
## Stage parts of a changed file, instead of the entire file
```sh
git add -p

View File

@ -53,7 +53,8 @@
},
{
"title": "Get list of all remote references",
"tip": "git remote || git remote show"
"tip": "git remote",
"alternatives": "git remote show"
},
{
"title": "Get list of all local and remote branches",