$ git pull origin BranchName
This will update the local files with the remote changes on the github server.
There is another way
$git reset --hard origin/BranchName
There is another way
$git reset --hard origin/BranchName
How to check the differences between two branches?
$ git diff branch_1 branch_2
How to update the server if the directory has been removed locally ?
1. git rm -r directory_name
2. git commit -m "directory_name removed"
3. git push origin branch_name
Compare same file under different branches
git branch1 branch2 -- filename.js
0 comments:
Post a Comment