Sunteți pe pagina 1din 1

git config --global user.

name "yourname"
git config --global user.email "your email"
git config --list
mkdir test-repo
git init
git remote add origin (url of repo)
git clone (url)
git add . adds all new files
git add -u updates tracking for files that changed names or were deleted
git add -A does both of the previous
git commit -m "message"
git push
git checkout -b branchname (create a branch)
git branch (to see what branch you are on)
git checkout master (to switch back to master)

S-ar putea să vă placă și