Skip to content

Instantly share code, notes, and snippets.

@mkczyk
Last active July 24, 2016 21:46
Show Gist options
  • Save mkczyk/beed8f73bab78333598d to your computer and use it in GitHub Desktop.
Save mkczyk/beed8f73bab78333598d to your computer and use it in GitHub Desktop.
## Commit
```
git add .
git commit -am "msg"
git push origin master
```
## Zmiana aktualnego brancha
```
git checkout nazwa_brancha
```
## Zmiana nazwy brancha na remote
Najpierw pobrać commity z remote
```
git checkout old
git pull
```
Zmiana nazwy lokalnie, usunicie i dodanie pod now nazwą:
```
git branch -m old new
git push origin new
git push origin :old
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment