Development notes
This commit is contained in:
parent
70bca48b17
commit
6faf10529c
1 changed files with 29 additions and 0 deletions
29
notes.md
Normal file
29
notes.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
Git "Cheat Sheet"
|
||||
===
|
||||
|
||||
Committing files
|
||||
---
|
||||
|
||||
To automatically stage files that have been modified and deleted, include -a; eg:
|
||||
|
||||
git commit -a
|
||||
|
||||
Creating a new branch ("386dev") after modifying one or more files
|
||||
---
|
||||
|
||||
git checkout -b 386dev
|
||||
|
||||
Pushing a new branch ("386dev")
|
||||
---
|
||||
|
||||
Since a simple `git push` will report:
|
||||
|
||||
fatal: The current branch 386dev has no upstream branch.
|
||||
To push the current branch and set the remote as upstream, use
|
||||
|
||||
git push --set-upstream origin 386dev
|
||||
|
||||
do this instead:
|
||||
|
||||
git push -u origin 386dev
|
||||
|
||||
Loading…
Reference in a new issue