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:39] – mlivolsi | programing:git [2026/04/24 14:19] (current) – mlivolsi | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| A Good reference: https:// | A Good reference: https:// | ||
| + | === Working in the Master Branch === | ||
| If doing work in the master branch | If doing work in the master branch | ||
| * 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 |
| < | < | ||
| mike branch | mike branch | ||
| Line 23: | Line 24: | ||
| | | ||
| </ | </ | ||
| + | |||
| * cd < | * cd < | ||
| Line 34: | 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.1765503575.txt.gz · Last modified: by mlivolsi
