-
Notifications
You must be signed in to change notification settings - Fork 128
Github FAQ
Kaushal Dhruw edited this page Apr 28, 2018
·
6 revisions
Below commands will add .idea to .gitignore file and remove all files in .idea from index if already staged. Then commit and push to the current working branch.
echo '.idea' >> .gitignore
git rm -r --cached .idea
git add .gitignore
git commit -m '(some message stating you added .idea to ignored entries)'
git push
git clone LOCAL-FORKED-REPO-URL
cd into/cloned/fork-repo
git remote add upstream https://github.com/UdacityAndroidDevScholarship/quiz-app.git
git fetch upstream
git merge upstream/BRANCH-NAME BRANCH-NAME (or)
git rebase upstream/BRANCH-NAME BRANCH-NAME
we need to manually run this command for each branch.Resolve conflict if any and then do commit.
Rebase - Rewrite your given branch so that any commits of yours that aren't already in upstream/branch-name are replayed on top of that other branch.
git push origin BRANCH-NAME #for pushing a branch
git push --all #for pushing all branches
You may need to use the -f the first time after you've rebased.