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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -