- ๐ Hi, Iโm @marijndegen
- ๐ Iโm interested in gaming, coding, my friends, solving rubix cubes and parachuting.
- ๐ฑ I'm always interested to learn new stuff!
- ๐๏ธ If you have any cool code I should check, let me know :D
- ๐ซ Reach me at [email protected], view my resume
Note to self (and others) when recieving a new laptop
Configure git aliasses (in windows cmd):
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.sl "stash list"
git config --global alias.check "!sh -c 'git stash save -u '\"$1\"' && git stash apply' #"
git config --global alias.checkOld = "!sh -c 'git stash save -u '\"$1\"' && git stash apply' #"
git config --global alias.checkNoMessageRequired = "!f() { date=\"$(date +'%Y-%m-%d %H:%M:%S')\"; message=\"$1\"; git stash save -u \"at ${date} ${message}\" && git stash apply; }; f"
When using WSL2, put this in .bashrc to make sure windows git is used:
alias git=git.exe
git config in C:\Users\%USERNAME%\.gitconfig
should look like this:
[alias]
co = checkout
br = branch
ci = commit
st = status
check = "!f() { date=\"$(date +'%Y-%m-%d %H:%M:%S')\"; message=\"$1\"; if [ -z \"$message\" ]; then echo 'Error: No message provided for stash.' >&2; exit 1; fi; git stash save -u \"at ${date} ${message}\" && git stash apply; }; f"
checkOld = "!sh -c 'git stash save -u '\"$1\"' && git stash apply' #"
checkNoMessageRequired = "!f() { date=\"$(date +'%Y-%m-%d %H:%M:%S')\"; message=\"$1\"; git stash save -u \"at ${date} ${message}\" && git stash apply; }; f"