mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:46 +01:00
Starting a page with useful Git commands
parent
9aa439606a
commit
ee97892a09
16
Useful-Git-commands.md
Normal file
16
Useful-Git-commands.md
Normal file
@ -0,0 +1,16 @@
|
||||
### Branches
|
||||
* list all branches (incl. remotes)
|
||||
|
||||
> `git branch -a`
|
||||
>
|
||||
> * master
|
||||
>
|
||||
> remotes/origin/14.2
|
||||
|
||||
* switch to a branch you never checked out before, eg. above 14.2, and set up tracking
|
||||
|
||||
> `git branch --track <branch> origin/<branch>`
|
||||
|
||||
* switch to branch existing on your local repo
|
||||
|
||||
> `git checkout <branch>`
|
Loading…
Reference in New Issue
Block a user