bash - GIT Preview Checkout or Merge -


i want script me release system checkout repo in git.

my quest can way test checkout branch identify if got error without rely on file-system.

as same, can on easy way preview git merge identify conflict without modify file-system?

(the full system run on linux system if help)

use git merge --ff-only - merge branch if fast forwarded. means conflicts impossible , work (except of course system failures, e.g. out of disk space). obviously, means branches should not diverged, in cases so, if not should merge potential conflicts in repo, keeping "release repo" untouched.

another approach here use symlinks (linux or ntfs). should have 2 repositories repo1 , repo2 , symlink releaserepo point 1 of these. say, have releaserepo->repo1. update repo2, check if works, change symlink it, next time update repo1 , flip symlink back. if avoid system failures too, because create symlink operation atomic.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -