---
title: "GIT HUB"  
description: "List of useful Github Commands :   Github is a distributed version of repositories for open source developers. list of few commands and you can use"  
author: "Prakash nidhi Verma"  
published: 2018-07-02  
updated: 2018-07-02  
canonical: https://www.mindstick.com/blog/11845/git-hub  
category: "social media optimization"  
tags: ["command line"]  
reading_time: 2 minutes  

---

# GIT HUB

![GIT HUB](https://www.mindstick.com/blogs/7f86a6f5-a9d3-4f3c-8691-6b7618716ec0/images/1c35087a-b6d2-45ef-906a-817807ff6405.png)\

List of useful Github Commands :

Github is a distributed version of repositories for open source developers. list of few commands and you can use frequently on github( in git bash) is shown below :

for any kind of help on github about command line

```
git help
```

basic configurations on github like your name and email.

```
git config
```

your user name on git.

```
git config –global user.name “Prakash nidhi verma”
```

for mail

```
git config –global user.email xyz12@gmail.com
```

for color

```
git config –global color.ui true
```

\

```
mkdir store 
```

```
cd store 
```

```
git status
```

```
git add Readme.txt 
```

\

![GIT HUB](https://www.mindstick.com/blogs/7f86a6f5-a9d3-4f3c-8691-6b7618716ec0/images/e1531ce2-5a9a-430c-8cf9-bae44cac122e.png)\

\

for [status](https://www.mindstick.com/articles/157184/check-lic-policy-status-online-by-policy-number) and add file and text

```
git log 
```

```
git add 
```

```
git add --all 
```

```
git add *.txt 
```

```
git add docs/*.txt 
```

```
git add docs/
```

```
git add “*.txt” 
```

```
git diff 
```

```
git reset head license 
```

```
git checkout –license 
```

```
git commit -a -m “Readme.md” 
```

[commit](https://www.mindstick.com/forum/157683/explain-commit-rollback-and-savepoint-statements-with-examples-in-pl-sql) for local [server](https://www.mindstick.com/articles/43769/what-is-serverless-architecture-is-it-worth-switching-over)

```
git remote add origin https://github.com/pnidhi123/MyAlgorithms.git
```

local [repository](https://www.mindstick.com/articles/12232/repository-pattern-in-mvc) for a particular git address.

```
git remote add <address>
```

To [remove](https://yourviews.mindstick.com/story/4554/8-harmful-weeds-to-remove-from-garden) a [remote](https://www.mindstick.com/articles/85431/remote-employee-training-tips-tricks) from our local repository.

```
git remove rm
```

To create a new branch [named as](https://answers.mindstick.com/qa/62213/name-the-cricketer-who-was-named-as-the-player-of-the-tournament-in-cricket-world-cup-2019) [Testing](https://www.mindstick.com/articles/1849/role-of-testing-in-software-development).

```
git branch Testing
```

for current branch

```
git branch
```

To see directories and files in the current directory.

```
ls
```

To merge Testing branch with master branch.

```
git merge Testing
```

To [delete](https://www.mindstick.com/forum/33620/how-to-delete-record-from-list-in-mvc-using-ajax) Testing branch. \

```
git branch -d Testing 
```

To create a new branch admin and set it as current branch.

```
git checkout -b admin
```

To look at all the remote branches.

```
git branch -r
```

To see the list of available tags.

```
git tag
```

To push the tags to remote repository.

```
git push –tags
```

To fetch down any changes from [global](https://www.mindstick.com/articles/13127/macro-and-microeconomics-concepts-in-relation-to-global-organization-management) repository to current repository \

```
git fetch
```

```
git rebase
```

![GIT HUB](https://www.mindstick.com/blogs/7f86a6f5-a9d3-4f3c-8691-6b7618716ec0/images/5d1f1f7e-b8d8-425d-b9ab-51346d675e25.png)\

---

Original Source: https://www.mindstick.com/blog/11845/git-hub

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
