How can i merge my local changes with the repository changes in github? -


i new github user. working on repository. got repository command by

git clone sshpath

git fetch origin

now have made changes in local code , wish check in changes. however, same files have changed during time period , have been pushed repository other user. how can merge changes repository changes , check in code?

can tell me commands? highly appreciated.

regards aparna

the normal workflow fetch commits done remote local repository first. can perform necessary merging locally without affecting remote repo. once finished, push origin.

so it's git pull origin master pull remote changes local repo. conflicts need resolved here. git prompt when necessary (but rather smart resolve many conflicts on own). after that, git push origin master upload merged changesets.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -