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
- Host: GitHub
- URL: https://github.com/abhi5h3k/git-cheat-sheet
- Owner: Abhi5h3k
- Created: 2021-08-23T04:45:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-23T05:04:47.000Z (about 4 years ago)
- Last Synced: 2025-01-04T19:14:03.618Z (9 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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