Global: git config --global user.name "Pradhan" git config --global user.email [email protected] Project Level: git config user.name "Pradhan" git config user.email [email protected]
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/techbulletinprime/git-basic-example.git
git push -u origin master
#Sample git commands:
git status: To check what are the untracked or tracked files
git log: Show you commits
git add: will add your files to staging area
git commit -m "Commit message" : commit
git push: push your changes to remote repository.