This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:general:git [2017/12/19 16:59] – lunetikk | linux:general:git [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
| git config --global user.email "< | | git config --global user.email "< | ||
| git config --global user.name "< | | git config --global user.name "< | ||
- | | git remote add origin https:// | + | | |
- | | | | | + | |
- | | | | | + | |
- | | | | | + | |
- | | | | + | |
Line 19: | 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 | #copy master to remote origin | ||
git push -f origin master | git push -f origin master |