https://github.com/peteee/git-commands
https://github.com/peteee/git-commands
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/peteee/git-commands
- Owner: peteee
- Created: 2025-04-14T12:23:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-16T11:56:21.000Z (about 1 year ago)
- Last Synced: 2025-06-30T21:08:38.845Z (11 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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