What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-21 02:44:14
undo git stash with conflicts
git reset HEAD . (note the trailing dot) git stash (save the conflicted merge, just in case) git checkout develop git fetch upstream; git merge upstream/develop git checkout <new-branch>; git rebase develop git stash apply stash@{1} 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 -
Shell/Bash 2021-09-22 22:39:02
update fork
## Add Original Repository git remote add upstream https://github.com/OriginalOwner/OriginalProject.git ## Verify if Repository is added git remote -v ## Fetch Updates from Original Repository git fetch upstream ## Checkout to your master branch git ch... Add solution -
Other 2021-09-17 22:07:04
how to update forked repo in GitHub
## Add Original Repository git remote add upstream https://github.com/OriginalOwner/OriginalProject.git ## Verify if Repository is added git remote -v ## Fetch Updates from Original Repository git fetch upstream ## Checkout to your master branch git ch... Add solution -
Shell/Bash 2021-09-01 05:53:03
how to fetch upstream changes gitlab fork
# Git CLI # Add a secondary remote called upstream. git remote add upstream https://... # Fetch the remote and then pull its changes into your local master branch. git checkout master git fetch upstream git pull upstream master # Last, push to your o... Add solution -
Shell/Bash 2021-08-31 21:07:01
git rebase fork
## Add Original Repository git remote add upstream https://github.com/OriginalOwner/OriginalProject.git ## Verify if Repository is added git remote -v ## Fetch Updates from Original Repository git fetch upstream ## Checkout to your master branch git ch... Add solution -
Shell/Bash 2021-08-31 12:51:02
update my fork repository at github
## Add Original Repository git remote add upstream https://github.com/OriginalOwner/OriginalProject.git ## Verify if Repository is added git remote -v ## Fetch Updates from Original Repository git fetch upstream ## Checkout to your master branch git ch... Add solution -
Shell/Bash 2021-08-27 07:23:02
git pull updates from fork
# Add the remote, call it "upstream": git remote add upstream https://github.com/whoever/whatever.git # Fetch all the branches of that remote into remote-tracking branches, # such as upstream/master: git fetch upstream # Make sure that you'r... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5