Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

push local file to remote forcefully

git push <remote> <branch> --force-with-lease

git fetch --all 
git reset --hard <remote>/<branch_name>
 
PREVIOUS NEXT
Tagged: #push #local #file #remote #forcefully
ADD COMMENT
Topic
Name
9+8 =