2025-01-09 00:47:44 +00:00

25 lines
590 B
Markdown

DeaDvey's domain
[Home page](/index.md) [Blogs](/blog/index.md) [Resources](/resources/index.md)
---
***Git:***
**Helpful resources:**
- [Git docs](https://git-scm.com/doc)
- `man git`, Git manual entry.
**Crucial git commands:**
- `git add .`, Add's the contents of curreent directory to index
- `git commit -m 'update'`, Record changes to repository
- `git push`, Updates remote refs with local repo
**URL:**
- Change a git repositories url:
- `git remote set-url origin new.git.url/here`
- Return the url of the current git repository:
- `git config --get remote.origin.url`