SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[git] How can I push a specific commit to a remote, and not previous commits?
Home
Question
How can I push a specific commit to a remote, and not previous commits?
You could also, in another directory:
git clone [your repository]
Overwrite the .git directory in your original repository with the .git directory of the repository you just cloned right now.
git add and git commit your original
Examples related to
git
•
Does the target directory for a git clone have to match the repo name?
•
Git fatal: protocol 'https' is not supported
•
Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
•
git clone: Authentication failed for <URL>
•
destination path already exists and is not an empty directory
•
SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
•
GitLab remote: HTTP Basic: Access denied and fatal Authentication
•
How can I switch to another branch in git?
•
VS 2017 Git Local Commit DB.lock error on every commit
•
How to remove an unpushed outgoing commit in Visual Studio?
Examples related to
commit
•
git: updates were rejected because the remote contains work that you do not have locally
•
How to add multiple files to Git at the same time
•
Why Git is not allowing me to commit even after configuration?
•
Git commit in terminal opens VIM, but can't get back to terminal
•
How to configure Git post commit hook
•
GIT commit as different user without email / or only email
•
Editing the git commit message in GitHub
•
How to amend a commit without changing commit message (reusing the previous one)?
•
Temporarily switch working copy to a specific Git commit
•
git - Your branch is ahead of 'origin/master' by 1 commit
Examples related to
push
•
Best way to "push" into C# array
•
Firebase: how to generate a unique numeric ID for key?
•
Why does Git tell me "No such remote 'origin'" when I try to push to origin?
•
Unknown SSL protocol error in connection
•
Git push rejected "non-fast-forward"
•
How to add multiple files to Git at the same time
•
git push to specific branch
•
Declare an empty two-dimensional array in Javascript?
•
What does '--set-upstream' do?
•
fatal: 'origin' does not appear to be a git repository