User Tools

Site Tools


git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
git [2013/07/01 20:02]
k2patel [Setting up GIT]
git [2016/06/08 15:27]
k2patel [Script for Backup]
Line 110: Line 110:
 done done
 </​code>​ </​code>​
 +
 +==== Git reset local ====
 +**following command can be used for following purpose :** \\
 +To discard all local changes and restore it to the remote repository.\\
 +When you have error //Your branch is ahead of '​origin/​master'//​
 +<code bash>
 +git reset --hard origin/​master
 +git pull
 +</​code>​
 +
git.txt ยท Last modified: 2020/08/10 02:35 (external edit)