Git Basics for beginners
Nov 14, 2023
Tells about the basic commands to use git in new application
Clone the repo
git clone https:<git-repo-url>.git
Add the changes
git add .
Commit the Changes
git commit -m "message"
Push the changes
git push origin master
Create branch
git checkout -b new-branch
Switch to branch
git checkout new-branch
Pull the changes
git pull origin new-branch
Revert last commit message
git commit --ament -m "message"
Push Repository to Remote
git remote add origin repo-url