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

https://github.com/abhi5h3k/git-cheat-sheet

git cheat sheet
https://github.com/abhi5h3k/git-cheat-sheet

Last synced: 8 months ago
JSON representation

git cheat sheet

Awesome Lists containing this project

README

          

# GIT CHEAT SHEET
```git init```
Initialize the current directory as a git repository.

```git init ```
Create empty Git repo in specified directory.

```git clone ```
Clones a repository on local machine from the URL.

```git config user.name ```
Define author name to be used for all commits in current repo.

```git config --global user.email ```
Define author email.

```git add ```
Stage all changes in for the next commit.

```git commit -m ""```
Commit staged changes with a message.

```git status```
Show status of files that are staged, unstaged, and untracked.

```git log```
Show Commit history for the current branch.

```git branch```
Show all the branch available on th repo.

```git branch ```
create a new branch at the current commit.

```git checkout ```
Change to existing branch.

```git merge ```
Merge branch to curent branch