Get Git Basic Commands List Simple Helpful

Hi Guys,

Today we will list out some basic Git commands which will help you in managing your code version control. Because these are basic commands and very easy to keep in mind and easy to use for your code versioning. Therefore, I hope you will get these commands very helpful for you in your code and other document version controlling related work. Lets see the below list and use it your practice, work and learning.

Starting a project

git init 'project name'
git clone 'project url'

Get status of working Directory

git status

Add a file

git add 'file'

Commit to repository

git commit -m 'commit comment text here'

Remove file from staging area

git rm 'file'

Fetch changes from the remote

git fetch 'remote'

Create new branch

git branch 'branch_name'

List all local branches

git branch -a

Remove selected branch

git branch -d 'branch_name'

Switch between current branch to other branch

git checkout -b 'branch_name'

So I hope the above information will help you a lot.

If you want to learn more related to GIT you can see here.

Read Here: If you want to get testing card numbers to test payments on your site

Please feel free to let me know your feedback in comment section and I will try to add more info into this page according to your feedback.

So looking forward to get your comment below in comment section. As you can see, your feedback always matter to me. Because feedback makes things better and more better day by day.

Thanks

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

eighty one ÷ nine =