What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-17 22:24:26
git workflow
GIT Commands and sudo-order of operations (* = not neccessary) 1. Initialize git git init <--perform in target directory 2. Create new branch *git branch <--check branch "inventory" git checkout -b <name> <---create AND switch... Add solution -
Shell/Bash 2021-11-15 23:15:14
update branch with master
git checkout master git pull git checkout mybranch git merge master # to keep mybranch in sync with master # then when you're ready to put mobiledevicesupport into master, first merge in master like above, then ... git checkout master git merge mybran... Add solution -
Shell/Bash 2021-11-15 20:43:24
checkout master with previous commit
git checkout 307a5cd # check out the commit that you want to reset to git checkout -b fixy # create a branch named fixy to do the work git merge -s ours master # merge master's history without changing any files git checkout master ... Add solution -
Shell/Bash 2021-11-13 18:43:28
git how to work with remote branch and fork
Step 1) Checkout new branch `git checkout -b new-branch` Step 2) Make changes Step 3) Add to git `git add .` Step 4) Commit `git commit -m "Made changes!"` or `git commit -a` Step 5) Push to your repo `git push origin new-branch` Step 6) Make PR... Add solution
Best helpers
User 768576
+10
Viki
+5
Riptiki
+5
Suraj tiwari
+5
Johnno Nolan
+5
Alxna
+5
Bmcl
+5
Nuno
+5
AllenG
+5
Hong
+5
Hugh Zang
+5
Marcel Souza
+5
Rosey28
+5