Ignore files only locally
List these files in
git remote update
# the double hyphen ensures that upstream/master is considered as a revision and not confused as a path
git reset --hard upstream/master --
Then push this new branch-head to your origin repository, ignoring the fact that it won't be a fast-forward:
git push origin +master
May also need to run git remote add upstream <upstream_repo_url> if you forked the branch using GitHub.
Delete remote branch
git push origin --delete <branch_name>
Delete local branch
-
git branch -d branch_name
git remote add otherfork git://github.com/request-author/project.git
-
git fetch otherfork
-
git cherry-pick <first-SHA1> <second-SHA1> <etc.>
Get SHA1 from git log or from github.com/bitbucket.org etc.
-
git clone <url> --branch <branch> --single-branch [<folder>]