programing:git
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programing:git [2025/12/12 01:40] – mlivolsi | programing:git [2026/04/24 14:19] (current) – mlivolsi | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| * cd < | * cd < | ||
| - | * git pull origin master | + | * git pull origin master |
| * git add --all | * git add --all | ||
| * git commit | * git commit | ||
| - | * git push origin master | + | * git push origin master |
| === Creating a branch and merging changes === | === Creating a branch and merging changes === | ||
| Line 24: | Line 24: | ||
| | | ||
| </ | </ | ||
| + | |||
| * cd < | * cd < | ||
| Line 35: | Line 36: | ||
| This pushes the changes from the mike branch to upstream on github | This pushes the changes from the mike branch to upstream on github | ||
| + | |||
| + | |||
| + | ==== Scenario ==== | ||
| + | |||
| + | Git complains about a big file after you do a commit. | ||
| + | |||
| + | |||
| + | * git rm --cached scripts/ | ||
| + | * rm ' | ||
| + | * git commit --amend --no-edit | ||
| + | * git push origin master (or main) | ||
| + | |||
| + | ==== Cloning a Repo ==== | ||
| + | |||
| + | * cd to the directory you want to clone to | ||
| + | * git clone https:// | ||
| + | * git config --global user.email "your email" | ||
| + | * git config --global user.name "first last" | ||
| + | |||
| + | |||
programing/git.1765503635.txt.gz · Last modified: by mlivolsi
