forked from jlevy/the-art-of-command-line
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc.txt
30 lines (26 loc) · 822 Bytes
/
bashrc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#2 simplest way to merge:
# https://stackoverflow.com/a/5602109/2269677
alias ..='cd ..'
alias lk=`ls -ltrh`
################################################ GIT :
# Get trunk differences
alias diffg=`git diff origin/master..HEAD`
# reset local changes (delete local changes, be careful)
alias resetg=`git reset --hard HEAD~1`
# Get info about which branch I am now
alias branchg=`git branch`
####################### commit steps when you want commit updates from specific branch 'art-brash2':
# -- commit
# git commit
# -- change to 'trunk'
# git checkout master
# -- get all changes from 'trunk'
# git pull origin master
# -- merge from branch
# git merge art-bash2
# -- upload changes
# git push
# -- change to branch
# git checkout art-bash2
# -- remember credentials
# git config --global credential.helper cache