Reputation: 7039
So I know how to update the repository with my files (the master one at least). And I know I can create a local branch with
$ git checkout -b [branch_name]
but that only creates it on the local git...how do i checkout a branch from the master on github and also overwrite files in my app directory, so I can update my project with the work of other people
Upvotes: 0
Views: 91
Reputation: 2520
Do you mean to ask, how to reset master
on your local machine to that of the master
on the origin?
If so:
Fetch all remote/origin changes and then hard reset your local master
to origin/master
's head:
$ git checkout master
$ git fetch --all
$ git reset --hard origin/master
Upvotes: 2