OSs | VCSs |
---|---|
Linux Commands | Git Commands |
find . -maxdepth 1 -mindepth 1 -type f | grep vim -exec rm {} \;
find -P `pwd` /Google\ Drive/habits -mindepth 1 -maxdepth 1 -type d -exec ln -fns {} habit \;
find . -name \*.cpp -exec grep -q "debug" '{}' \; -print
lsb_release -a
ls | grep -v "OPV-1778" | grep "OPV" | xargs -I '{}' mv '{}' done
Alias | Remote | List | Remove |
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 remote -v
git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
git remote add pb https://github.com/USERNAME/OTHERREPOSITORY.git
git remote show pb
git remote rename pb paul
git remote rm paul
git ls-tree -r master --name-only
echo "*.config">>.gitignore;
git rm --cached "*.config";
git add .;
git commit -m "Ignoring and deleting config files." ;
git push origin;
git ls-files | awk '!/java/ && !/gitignore/' | xargs git rm --cached