This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:general:git [2017/12/19 16:49] – created lunetikk | linux:general:git [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
^ Command | ^ Command | ||
| git log --follow check_symlink | | git log --follow check_symlink | ||
- | | git remote -v | verify | + | | git remote -v | verify |
- | | | | | + | | git config --global user.email "< |
- | | | | | + | | git config --global user.name "< |
- | | | | | + | | < |
Line 15: | Line 15: | ||
#download the repository | #download the repository | ||
git clone https:// | git clone https:// | ||
+ | |||
#change into repository | #change into repository | ||
cd check_symlink | cd check_symlink | ||
+ | |||
#checkout to a temp branch | #checkout to a temp branch | ||
git checkout --orphan temp_branch | git checkout --orphan temp_branch | ||
+ | |||
#add all files | #add all files | ||
git add -A | git add -A | ||
+ | |||
#commit the changes | #commit the changes | ||
git commit -am " | git commit -am " | ||
+ | |||
#delete the old branch " | #delete the old branch " | ||
git branch -D master | git branch -D master | ||
+ | |||
#rename the temp branch to master | #rename the temp branch to master | ||
git branch -m master | git branch -m master | ||
+ | #copy master to remote origin | ||
+ | git push -f origin master | ||
+ | -> | ||
+ | -> | ||
</ | </ |