Git - adeemacdowell/adeemacdowell.github.io GitHub Wiki
git config --global user.email "[email protected]"
git config --global user.name "Adee Macdowell"
git checkout develop && git fetch && git checkout @{-1} && git rebase develop
updating git password:
git config remote.origin.url https://you:[email protected]/you/example.git
git config remote.origin.url https://adeemacdowell:[email protected]/birite/knaps.git
git config credential.helper store
git rebase -i HEAD~5
Where 2 is the number of commits you want to squash
Change to
MANUALLY RESOLVE MERGE CONFLICTS
-
$ git pull origin <destination_branch>
-
See the list of conflicts
CONFLICT (content): Merge conflict in knaps/tickets/templates/tickets/upload-ticket-image-upload.html
CONFLICT (content): Merge conflict in knaps/tickets/templates/tickets/printouts/shelve-ticket-page.html
CONFLICT (content): Merge conflict in knaps/tickets/models.py
-
In pycharm navigate to the files
-
Do search for >>>
-
Remove the conflicts
-
git add -u
-
git commit -m 'this is my msg'
-
Using pycharm do a force push
DELETE all branches == git branch | grep -v "develop" | xargs git branch -D
DELETE all untracked files == git clean -df
git prune
git fetch --prune
Updates all the remote refs on your local machine