An open API service indexing awesome lists of open source software.

https://github.com/sumit-kr-das/git

Basic git command for beginners
https://github.com/sumit-kr-das/git

git github

Last synced: 6 months ago
JSON representation

Basic git command for beginners

Awesome Lists containing this project

README

          

# How to keep up to date a forked repo

![forked_demo](https://user-images.githubusercontent.com/73597446/201460511-5bbc47d6-bab1-492d-92f8-d94692d6ddee.png)

#### Clone the repo first
```git
$ git clone
```

#### Check the remote origin
```git
$ git remote -v
```

#### Add a new upstream
- upstream mean where you get the update from
```git
$ git remote add upstream
```

#### Check the new upstream
```git
$ git remote -v
```

#### For update origin with changes that happened in upstream
- or pull down all the remote changes from upstream
- they are not merge with our local changes
```git
$ git fetch upstream
```

#### For merge with local file
```git
$ git merge upstream/dev
```