github - What is the best way to synch an outdated git directory to a remote? -
github - What is the best way to synch an outdated git directory to a remote? -
i maintain vim configuration files on github maintain them synched across multiple machines. 1 time in while utilize machine haven't used in while , vim files way out of synch. if simply
git pull
from remote directory becomes messy since old files (or renamed files) not nowadays anymore in official remote remain put. typically delete , git clone scratch.
is best approach? ideally have command
git xxx
which delete/replace making perfect replica of remote
git fetch origin git reset --hard origin/master
where origin
remote, , master
remote branch want local working re-create in sync with. note these commands replace local files (including changes) remote state. means there no merge conflicts. mimics delete-and-reclone workflow.
git github
Comments
Post a Comment