Command Line | Visual Studio |
Before and after every set of scripts
git status
|
Double-Check status in the botom right menu
⇅0/0▴ 🖉0 ÿbranch▴ ⯁repo▴
⇅0/0▴
⇣
|
Unix style change directory
cd local_path
|
Change local repo/directory
⯁repo▴
... -> Open Local Repository
local_path
|
Get Latest from source_branch
git fetch origin
git checkout source_branch
git reset --hard origin/source_branch
git pull
|
Get Latest from source_branch
🖉0
(Stash, Commit or UnStage any existing changes)
[remotes/origin/source_branch▾]
⇣
↓
|
Get Latest from source_branch and make a dest_branch branch
git fetch origin
git checkout source_branch
git reset --hard origin/source_branch
git pull
git checkout -b dest_branch
|
Get Latest from source_branch and make a dest_branch branch
🖉0
(Stash, Commit or UnStage any existing changes)
[remotes/origin/source_branch▾]
⇣
↓
⋯ -> New Branch
Branch name: [dest_branch]
Based on: [source_branch]
[✓] Checkout branch
[Create]
|
Checkin your changes
git add .
git status
git commit -m ""
git push -u
|
Checkin changes
🖉0
Enter a message: []
[Commit All▾]
|
Make a pull request
git config --get remote.origin.url
|
Make a pull request
🖉0
⋯ -> Open in browser
|
Merge source_branch updates into dest_branch
git fetch
git checkout source_branch
git pull
git checkout dest_branch
git pull
git merge source_branch
git mergetool
``` in CMD clean the merge temp files ```
cd dos_path
del /f /s /q *.orig
`````````````````````````````````````````
git add .
git status
git commit -m "Merged source_branch into dest_branch"
git push -u
|
Merge source_branch updates into dest_branch
🖉0
(Commit any existing changes)
[dest_branch▾]
⇣
↓
View -> Git Repository
in Branches pane
right-click remotes/origin/source_branch
choose Merge 'source_branch' into 'dest_branch'
in Git Changes view
double-click conflict files to open in merge editor
after conflicts back in Git Changes view
Enter a message: [Merged source_branch into dest_branch]
[Commit Staged▾]
|