git command line tutorial code example
Example 1: git basic command tutorial
#Initialize Repo
cd my_awesome_project
git init
#NOTE:you need to setup your global (--global) or project user
git config --global user.name POG
git config --global user.email [email protected]
#Create a README.md and .gitignore file then stage all changes
git add .
#Commit them
git commit -m "Create REAME and gitignore"
Example 2: git basic commands
git merge <branchname>
Example 3: git basic commands
git add <filename>
git add *
Example 4: git basic commands
git tag 1.0.0 <commitID>
Example 5: git basic commands
git push --tags origin