转载:https://blog.csdn.net/dietime1943/article/details/72420042 利用Git Bash进行第一次提交文件 快下班的时候,MD群里有人问怎么向github上提交文件,下面进行简单的介绍: (1) GitHub中创建一个工程 仓库的https地址:https://github.com/bluetata/blog.csdn.dietime1943.git GitHub上创建仓库后生成的提示 Create a new repository on
git 把dev部分提交过的内容合并到master $ git reflog a6de5cc HEAD@{}: checkout: moving from wf_dev to master 303aaef HEAD@{}: checkout: moving from master to wf_dev a6de5cc HEAD@{}: pull origin master: Merge made by the 'recursive' strategy. 602559e HEAD@{}: commi
git删除所有历史提交记录,只留下最新的干净代码 1.Checkout git checkout --orphan latest_branch 2. Add all the files git add -A 3. Commit the changes git commit -am "commit message" 4. Delete the branch git branch -D master 5.Rename the current branch to master git bra