programming:git:git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
programming:git:git [2021/08/02 09:51] – [Clone only one directory] sbolay | programming:git:git [2022/04/12 06:19] (current) – Adding links to the articles ateixeira | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Git ====== | ====== Git ====== | ||
- | ===== Clone only one directory ===== | + | * [[Learning Git]] Getting started with some basics Git commands |
- | | + | |
- | cd <git directory> | + | |
- | git config core.sparsecheckout true | + | |
- | echo "< | + | |
- | git checkout -- | + | |
- | + | ||
- | Reference : https:// | + | |
- | + | ||
- | + | ||
- | ===== Git pull ===== | + | |
- | git pull runs git fetch with the given parameters | + | |
- | + | ||
- | < | + | |
- | Pulling without specifying how to reconcile divergent branches is | + | |
- | discouraged. You can squelch this message by running one of the following | + | |
- | commands sometime before your next pull: | + | |
- | + | ||
- | git config pull.rebase false # merge (the default strategy) | + | |
- | git config pull.rebase true # rebase | + | |
- | git config pull.ff only # fast-forward only | + | |
- | + | ||
- | You can replace "git config" | + | |
- | preference for all repositories. You can also pass --rebase, --no-rebase, | + | |
- | or --ff-only on the command line to override the configured default per invocation. | + | |
- | </ | + | |
- | + | ||
- | git config --global pull.rebase true | + | |
- | + | ||
- | Reference : https:// | + | |
- | Exemple : https:// | + |
programming/git/git.1627897916.txt.gz · Last modified: 2021/08/02 09:51 by sbolay