Post

Git

Ref: Git Documentation


Git Clone

Checkout the main branch

1
2
3
4
5
6
7
git init
git checkout -b new_branch
git status
git add .
git commit -m "updates"
git remote origin http://github.com/......
git push origin new_branch

Commit Changes in Git

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
git add --all
or 
git add .


git commit -m "Comment on changes"
git push -u origin main

-----------------------------
NOTE:
git push --help

If you have divergent branches and need to specify how to reconcile them.
You can do so 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

-----------------------------

bundle install
bundle update
bundle exec jekyll serve --livereload

-----------------------------

Git Branch

Git Branch


Git Collaboration

Git Collaboration

Git Collaboration

Git Collaboration


This post is licensed under CC BY 4.0 by the author.