Skip to content

Force-pulling files from origin while keeping new local files #22318

Answered by Wabri
LO177 asked this question in New to GitHub
Discussion options

You must be logged in to vote

Did you try using branches? This is probably the best solution for you. Create a branch called local in your local repository and keep master on remote repository. With this solution you don’t need to pull before a push every time you changes something, yuo can push every time you want to remote and from there (on github) create a pull request to see if the changes made on the local branch is able to merge in master. When you need to work in the local master you can checkout and pull.

Github Desktop does not let me pull without a push at all to begin with. I tried to do it via cmd instead by using git pull origin master command, but it still showed the same message and aborted the pull e…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants