Git结帐问题HEAD-> master

时间:2020-06-23 18:54:31

标签: node.js git express github

89499ab (HEAD -> current-branch, temp-branch, current1-branch) Insertion of README.mg
ecb2fc9 validation of user operation on the UI
88417e7 add some files to .gitignore
f9f24e1 Integration of nodemailer
8c8b0f4 Express-Validator
64b80ff Express Server Integration
a2267ce (origin/master, master) First Project Commit

你好,我不是git的专家。我在某个年龄进行了git checkout,我的问题从那里开始。我试图将本地git推送到网上,但“ origin / master,master”仍在我的第一次提交“ a22567ce”上,但应该在最后一次提交的“ 89499ab”上

实际上,它应该如下所示

89499ab (HEAD -> master, origin/master) Insertion of README.mg
ecb2fc9 validation of user operation on the UI
88417e7 add some files to .gitignore
f9f24e1 Integration of nodemailer
8c8b0f4 Express-Validator
64b80ff Express Server Integration
a2267ce First Project Commit

此外,如何删除我创建的分支>>当前分支,临时分支,current1-分支

1 个答案:

答案 0 :(得分:0)

您所做的是正确的!如果您准备将master向前移动,则可以git checkout mastergit merge current-branchgit push

然后可以使用git branch -d current-branch删除分支,依此类推。如果其中任何一个拒绝删除,git会告诉您说什么。