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

https://github.com/peteee/git-commands


https://github.com/peteee/git-commands

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# git-commands

## cloning a repo
`git clone https://github.com/user/repo_name`

## changing into repo's directory
`cd repo_name`

## adding files/staging changes
`git add *`

## removing files
`git rm ...`

## commit with message
`git commit -m "my description"`

## push to master/main (uploading stuff too)
`git push origin master`
or
`git push origin main`

# repo maintenance
## checking status
`git status`

## update local repo
`git pull`

Note[^1].

[^1]: need to add device with ssh key to github first and edit .git/config to say git@github.com:user/repo_name.git