Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f0e66b91
authored
Jul 21, 2019
by
Amir Aharon
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add knowledge
parent
1b9301ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
common/docs/knowledgeBase/git-checkout-subdirectory.txt
common/docs/knowledgeBase/git-checkout-subdirectory.txt
0 → 100644
View file @
f0e66b91
* first time
[create]
mkdir <repo>
cd <repo>
git init
git remote add -f origin <url>
[config]
git config core.sparseCheckout true
echo "sub/dir/" >> .git/info/sparse-checkout
[pull]
git pull origin master
* update remote
git add [for new files]
git commit -a
git push --set-upstream origin master
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment