Git Basics for beginners

--

Tells about the basic commands to use git in new application

git

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

--

--

Learn to Growing
Learn to Growing

No responses yet