multiple commit

hello guys, how can I remove one if it's like this, it became multiple commit,There are two commits that appear, because several times I have created a repository because of the issue that my commit was not successful, this is the issue that appears. I tried to reset it, but it's still the same, what is the possible way to fix it ? Thank you!
No description
No description
11 Replies
Cortezano
CortezanoOP11mo ago
I try this command but not work to reset
rm -rf .git I also tried the basic use commands for push and committing projects but same issue when I tried again
Cortezano
CortezanoOP11mo ago
I'm planning to put my project on github, so I can practice push and commit and update some change in my website, but there is always an issue when I put it on github. Thank you guys hope u can help for this
No description
Joao
Joao11mo ago
You missed one step. First you add the files you want to stage. You can specify them one by one, by using a glob pattern (at least on Mac/Linux) or all files that have been edited by providing a dot:
git add file1 file2 file3
git add *.js
git add .
git add file1 file2 file3
git add *.js
git add .
Then it's when you commit those files:
git commit -m "some descriptive message about what changed"
git commit -m "some descriptive message about what changed"
Finally, you can push your files. If you haven't done this already, set the remote host where you'll be pushing files to:
git remote add origin <URL>
git push -u origin <git_branch_to_push>
git remote add origin <URL>
git push -u origin <git_branch_to_push>
Cortezano
CortezanoOP11mo ago
thank you for this sir, another question how about this I have 2 commit I want to remove this and start to new repository
No description
Cortezano
CortezanoOP11mo ago
but I already delete this 2 repository, but still not remove this in my vs code
Joao
Joao11mo ago
I've actually never used the git integration in VSCode, it seems a bit weird to me :/ But it's probably just caching those results from somewhere. If you want to start from scratch what I'd suggest is removing the .git folder entirely, then close the project in VSCode (via File > Close Folder (Ctrl+K F)), and then re-open it.
Jochem
Jochem11mo ago
it does that if you have multiple folders open that each have a repo in them the hover shows which project location it's for
Cortezano
CortezanoOP11mo ago
question, I tried to host my website in github but I have issue about checkout, and the problem is this in second picture something files the name is Web-App, how to remove this I think this cause a problem of my checkout, and then I check the status in my git bash showing this .
No description
No description
No description
Cortezano
CortezanoOP11mo ago
maybe the Web-App is my repository before? I tried to delete this manually to the folder but can't delete. and this Web-app Folder cause an issue in my hosting on my website
Cortezano
CortezanoOP11mo ago
No description
Cortezano
CortezanoOP11mo ago
resolved, thank youu! All I did was, delete the web-app folder then re deploy T T
No description
Want results from more Discord servers?
Add your server