What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-28 10:57:02
git origin master some file
git checkout origin/master -- path/to/file Add solution -
Shell/Bash 2021-08-28 05:01:02
git bring your changes to a new branch
git checkout -b <new-branch> // This will leave your current branch as it is, create and checkout a new branch and keep all your changes. You can then stage changes in files to commit with: git add <files> //and commit to your new branch with... Add solution -
Shell/Bash 2021-08-28 03:10:02
branching strategy in your company
Our test framework is separate repo from the application code repo. Automation framework has a smaller code base, and fewer people are involved. so we do not have a very complicated branching strategy We have master and develop branches(buffer branch) ... 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 -
Shell/Bash 2021-08-26 19:22:02
git update fork from original repo
## 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-26 18:42:01
checkout file from another branch
git checkout master -- myplugin.js Add solution