markdown Git Command line Fundamental

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Git Command line Fundamental相关的知识,希望对你有一定的参考价值。

### Git Download 
[Git Download link](https://git-scm.com/)

### Check Version
```bash
    git --version
```
### Set Config file username and email
```bash
git config --global user.name "Dibaloke Chanda"
git config --global user.email "dibaloke66@gmail.com"
```
### See Config file
```bash
git config --list
```
### Help Commmand
```bash
git help onfig
git config --help
```
### Intialize Repo
```bash
git init
```

### Check Status of Staging Area
```bash
git status
```
### Check log of commit with message
```bash
git log
```
### Add all files to staging area
```bash
git add -A
```
### Add Specific files to staging area
```bash
git add m.py hello.py pubspec.yml .gitignore

```
### Reset or pull  all files from staging area
```bash
git reset
```
### Reset or pull specific files from staging area
```bash
git reset m.py hello.py pubspec.yml .gitignore
```
###  Commit files from staging area with message
```bash
git commit -m "Intial Commit"
```
### Clone Remote Repo to current directory
```bash
git clone https://github.com/tiagojencmartins/unicornspeeddial.git .
```
### Get Information about Cloned Remote repo
```bash
git remote -v
git branch -a
```
### Show Changes made to the code
```bash
git diff
```
###  Add and push to remote repo
```bash
git remote add origin https://github.com/dibaloke/Measurment-lab-Project.git
git pull origin master
git push -u origin master
```

以上是关于markdown Git Command line Fundamental的主要内容,如果未能解决你的问题,请参考以下文章

fuck--Fix git command line spelling errors GitHub

git [command line] fatal: Authentication failed for

git ------ fatal: No configured push destination. Either specify the URL from the command-line or co

Command Line 4

Xcode Command Line Tool 介绍

Build a Command Line Interface(CLI) with Node.js