We recommend every repository include a README
, LICENSE
, and .gitignore
git config --global user.name "username"
git config --global user.email "[email protected]"
git clone [email protected]:user/repository_dir.git && cd repository_dir
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
cd existing_folder
git init
git remote add origin [email protected]:user/repository_dir.git
git add .
git commit -m "Initial commit"
git push -u origin master
cd existing_repo
git remote rename origin old-origin
git remote add origin [email protected]:user/repository_dir.git
git fetch origin master
git merge origin/master
git push -u origin --all
git push -u origin --tags
git branch -avv # display all branch including remote/origin
Better, use git pull --rebase
find . -not -path '*/.git/*' -type f -name '*.cs' -exec bash -c 'expand -i -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;
or
find . -type d -name '.git' -prune -o -type f -name '*.cs' -exec bash -c 'expand -i -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;