-
-
Notifications
You must be signed in to change notification settings - Fork 9
Reference (GIT)
spraggettMG edited this page Jul 24, 2024
·
2 revisions
git clone --recurse-submodules <repository>
git submodule update --init --recursive # Gets all submodules up to date
git fetch # Pulls all remote branches onto all local branches
git pull # Pulls the remote branch of the same name onto the local branch of the same name
git checkout -- origin/remote-branch * # Where remote-branch is the branch you are currently on
git reset --hard
git clean -fd
git submodule sync
git submodule update
git add file1 file2 # Use git add . to add all files
git commit -m "Added file1 and file2"
git pull # In case the remote branch is ahead of the local branch
git push origin remote-branch # Where remote branch is the name of local branch
git pull origin <different-remote-branch>
git mergetool # Or use IDE to merge
git add .
git commit -m "Merged branch from different-remote-branch"
git push origin original-remote-branch
git fetch # To make sure you have the latest
git checkout origin original-branch
git checkout -b origin new-branch
git status # You should now see yourself be on the new-branch
- Go to github.com/utra-robosoccer/
- Click on pull request
- Click on new pull request
- Select the branch you want to merge with, (ideally you merge from custom branch to master branch)
- Add the users reviewing the merge and update all of the fields on the left
remove submodule https://gist.github.com/myusuf3/7f645819ded92bda6677
Setup private repo from a public, look at second answer https://stackoverflow.com/questions/10065526/github-how-to-make-a-fork-of-public-repository-private
Adding submodule https://git-scm.com/book/en/v2/Git-Tools-Submodules