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:
parent
04f388e191
commit
9cc9a46519
18
README.md
18
README.md
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user