Use Git&Github
Learn Git and Github by using it.
ShaneRun
To Think, To Explore, To Contribute.
展开
-
[200809] copy ssh key to another computer for github
[200809] copy ssh key to another computerstep1: copy .ssh folder to another computerstep2: test ssh-key $ ssh -T [email protected]: config username and email of github$ git config --global user.name "your name"$ git config --global user.email "your_原创 2020-08-09 11:17:40 · 72 阅读 · 0 评论 -
[200719] Github limitation on repository size and file size
Github limitation on repository size and file sizeGitHub 尝试为所有 Git 仓库提供丰富的存储空间,尽管文件和仓库大小存在硬性限制。文件和仓库大小限制为确保用户的性能和可靠性,我们积极监控整个仓库运行状况的信号。 仓库运行状况是各种交互因素共同作用的结果,包括大小、提交频率、内容和结构。建议仓库保持较小,理想情况下小于 1 GB,强烈建议小于 5 GB。 较小的仓库克隆速度更快,使用和维护更容易。 仓库中的单个文件严格限于 100 MB原创 2020-07-31 06:31:14 · 138 阅读 · 0 评论 -
[200620] Learn to use `git log`
[200620] Learn to use git log(Preferred) Commit-id with HEAD ref: git reflogShort commit-id: git log --onelineFull commit-id: git log --pretty=onelineThen use git show to see changes of certain commit-id,(Preferred) See last commit: git showSee ce原创 2020-07-14 06:31:45 · 54 阅读 · 0 评论 -
[200625] How to use .gitignore?
[200625] How to use .gitignore?[1] /folder/: whole folder[2] *.zip: all zip files[3] /folder/file: certain file[4] /mtk/ + !/mtk/one.txt: 只需要管理/mtk/目录中的one.txt文件Reference:[1] https://blog.csdn.net/CYK5201995/article/details/52216398...原创 2020-07-11 17:09:07 · 66 阅读 · 0 评论 -
[200620] Learn to use `git reset`
[200620] Learn to use git resetThere are three options: hard(All trees), mixed(Index+HEAD), and soft(HEAD), prefer to use hard because all trees will be reset.HEAD is a pointerReset to any commit-id: git reset --hard commit-idReset to HEAD: git reset原创 2020-07-11 15:22:34 · 66 阅读 · 0 评论 -
git_ask_05-What is difference between ‘origin/master’ and ‘origin master’?
ID = git_ask_05Status: closedContentQuestionAnswerComparison tableWhen to use 'origin/master' and 'origin master'?ExtensionReferenceQuestionWhat is difference between ‘origin/master’ and ‘origin master’?When to use ‘origin/master’ and ‘origin master’原创 2020-07-06 13:55:31 · 135 阅读 · 0 评论 -
git_ask_04-How to understand HEAD?
ID = git_ask_04Status: closedHow to understand HEAD in git?QuestionAnswerstep1: create branch devstep2: switch to branch masterstep3: delete branch devReferenceQuestionHow to understand HEAD?AnswerHEAD is a pointer, pointing to the current active bra原创 2020-07-06 10:47:33 · 98 阅读 · 0 评论 -
git_ask_00-From SVN to Git
文章目录QuestionAnswerStep1: Create project in GithubStep2: CheckoutStep3: UpdateStep4: Add changes to IndexStep5: CommitStep6: Conflict resolve manuallyStep7: Push to serverQ&AQ1. git Bash Here?Q2. How to add folder?Q3. How to show log?Q4. How to compare?原创 2020-06-20 06:59:04 · 216 阅读 · 0 评论 -
git_ask_02-How to synchronize to the base master after fork
ID = git_ask_02文章目录QuestionAnswerStep1: Check remote serverStep2: Add new server and check againStep3: FetchStep4: Cut branch 'dev'Step5: Merge to branch 'dev'Step6: Switch to branch 'master'Step7: Merge branch 'master' with branch 'dev'Step8: Push to ori原创 2020-06-23 09:56:56 · 115 阅读 · 0 评论 -
git_err_00-Understanding of git pull
ID = git_err_00文章目录ErrorAnalysisLesson learnUse `git fetch` + `git merge`[1]FETCH_HEADReferenceErrorMisunderstood git pullcmd = cmd1 + cmd2stagecmdcmd1cmd2beforegit pullgit fetch origin mastergit merge origin masteraftergit pullgit原创 2020-06-24 06:36:53 · 89 阅读 · 0 评论