Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepowershell
titleExample how to pull changes to a local Git repository
linenumberstrue
# add the test repo as a remote repository 
git remote add oldrepo git@github.com:sos-berlin/js7-demo-inventory-rollout-test.git

# get the test repo commits
git remote update

# examine the whole tree
git log --all --oneline --graph --decorate

# copy/cherry-pick the commits from the test repo into your local prod repo
git cherry-pick <commit-hash>

# check local prod repo
git log

# push changes to remote prod repo
git push origin master

# remove the reference to the test repo
git remote remove oldrepo


Explanation:

  • Line 11: The <commit-hash> identifies commits performed to push when pushing scheduling objects to the test repository. This step can be performed repeatedly to copy cherry-pick a number of commits.

Pull Changes to local Git Repository

...