notes:git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:git [2023/08/31 11:21] – azman | notes:git [2024/02/28 09:54] (current) – [Create/Apply Patches] azman | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Git Stuff ====== | ====== Git Stuff ====== | ||
- | From [[http:// | + | From [[https:// |
//"Git is an open source, distributed version control system | //"Git is an open source, distributed version control system | ||
- | Some useful configurations before starting with git. I have this simple script that I run on a new machine I want to work on. | + | Some useful configurations before starting with git. I have this [[https:// |
- | <file bash gitstart> | + | |
- | # | + | |
- | + | ||
- | # gitstart | + | |
- | # - written by azman@my1matrix.net | + | |
- | # - write basic git config setup | + | |
- | + | ||
- | GIT_NAME=${GIT_NAME: | + | |
- | GIT_MAIL=${GIT_MAIL: | + | |
- | + | ||
- | git config --global user.name " | + | |
- | git config --global user.email " | + | |
- | git config --global color.diff auto | + | |
- | git config --global color.status auto | + | |
- | git config --global color.branch auto | + | |
- | git config --global color.ui auto | + | |
- | # only on slackware? some viewing problems (less environment? | + | |
- | git config --global core.pager "less -FXRS" | + | |
- | </ | + | |
- | + | ||
- | Note: Set the environment variable //VISUAL// to your favorite console editor... I use $(which vim). OR, use < | + | |
===== Create, Clone, Add, Commit ===== | ===== Create, Clone, Add, Commit ===== | ||
Line 47: | Line 26: | ||
Create formatted patches (note: sha1id1..sha1id2 is the range of commits used to create patches) < | Create formatted patches (note: sha1id1..sha1id2 is the range of commits used to create patches) < | ||
To rename created patch(es) with commit timestamp < | To rename created patch(es) with commit timestamp < | ||
- | To apply the patches (stopping on error) < | + | To apply the patches (stopping on error) < |
===== Branching/ | ===== Branching/ |
notes/git.1693452085.txt.gz · Last modified: by azman