Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. go to folder where u want to initialize git
- 2. right click and open 'git bash here'
- 3. 'git init'
- //a hidden .git file will be created and git will be setup there
- 4. git status //to check which files were tracked or not
- 5. git add . //add all files to git
- 6. git commit -am "sadsad" //comment what changes u did and save the changes
- 7. clear //to clear screen
- 8. git log // to view all changes that were made
- 9. git show lognumber // to view what changes u made during a commit
- 10. git checkout lognumber // to change code to a specific commit
- ctrl + z to end
- 11. git checkout master // to change code to the recent version
- 12. git remote add origin url //to link ur local changes to created repository for the first time
- 13. git push origin master // to push ur changes to repository
- 14. git pull origin master // to download ur repository to someplace. u can change and modify then update online using push
- 15. git clone url //to clone a repo but u cant update the repo
- 16. add new user
- git config --local credential.helper ""
- git config user.name her_username
- git config user.email her_email
Add Comment
Please, Sign In to add comment