Questions tagged [commit]
Questions about committing a transaction or "unit of work" to a database, application or version control system.
3,200
questions
-2
votes
2
answers
45
views
Last commit pull to master branch git [closed]
i just want to send the code of the last commit from developer to the master branch, please explain me how it works
My structure is
origin
|
---developer
| |
| --- > start commit start.cpp
| ...
1
vote
1
answer
18
views
Semantic release - include in CHANGELOG the commit subject, body and footer
I am trying to configure semantic release to include the subject, body and footer of the commit messages in CHANGELOG.md file, not just the subject of commit message, but no success. In my changelog I ...
1
vote
1
answer
26
views
Lost files after running git reset --hard before initial commit
So, I did something very stupid: i started a project, did quite a lot of work on it, and then I initialized a git repo. I ran git add to add all of the project files, but i wanted to exclude one file, ...
-1
votes
0
answers
20
views
Cant remove commit, editor doesn't open after: git rebase -i <target-commit>~1
I need help.
I'm trying to remove commit from GIT repo. I create repo and 2 commits, and I want to remowe the first one. I do git rebase -i HEAD~1 and get in terminal:
screen of terminal output
and ...
0
votes
1
answer
27
views
Diff in commit toolbar IDEA
I have commit toolbar (⌘+0 for mac) with a list of changed files and i want to see the diff (⌘D). Currently diff is displayed in editor tab or i can switch it to show in a separate window, no more ...
1
vote
2
answers
43
views
Committing reverted and new changes to master branch
I had committed half of the implementation of my current project to master branch.
Then I created new feature branch from master branch to implement rest of the implementation of the project.
Since ...
1
vote
1
answer
41
views
What is the difference between engine.begin() and engine.connect()?
i go first straight for my questions: Why would one rather use engine.connect() instead of engine.begin(), if the second is more reliable? Then, why is it still on the tutorial page of SQLAlchemy and ...
-2
votes
0
answers
27
views
How do Pull Requests and Merge Commits work exactly?
Having issues with pull request and merge commits, I don't really fully understand what merge commits and pull requests do.
I have 2 branches, main and working branch. This is a project that I didn't ...
0
votes
2
answers
20
views
Confused first/only time github user - do I need local copy/ies to conduct the following (msg body details)
I am not a programmer/software/dev to need to get too many git[hub] tools installed, or use anything locally, if someone could please answer for me a very simple question.
Background: the only way I ...
0
votes
0
answers
12
views
GitHub Commit Comment Notification for Microsoft Teams
I'm using Microsoft Teams and GitHub and wanted to know if there is a way to show all new commit comments in a channel.
Or even if this doesn't exists if it's possible to add GitHub Runner, Webhook or ...
0
votes
1
answer
29
views
How to rollback on file import in MySQL?
I have a script that creates a .sql file with several hundred thousand separate insert statements. Then I run "mysql -u user -p dbase < import.sql. If one of the insert statements fails, I ...
0
votes
1
answer
28
views
Where can i find contribution graphs in Azure DevOps
Im using Azure repos and where can i find graphs like github in azure devops ?
-2
votes
0
answers
30
views
How to update a pip package code that have been published
How to update a pip package code that have been published by me
I need to update its readme thats why
0
votes
0
answers
14
views
I pushed a commit in the master branch. I want to UNDO it. How I can do that? [duplicate]
By mistake, I modified the code in the master branch and pushed it. I want to undo this commit. How can I do this?
0
votes
1
answer
25
views
Closing a GitLab Issue while on a different branch
I can close issues from the main branch, but if I'm on the 'dev' branch or another branch, the issues don't get closed. In the documentation, it says that closing commit issues can only be done on the ...
0
votes
2
answers
35
views
How to commit and push changes of tracking and un tracking files to correct branch in gitlab
We have a master branch in gitlab. And we have release v1 branch under that master branch.
Under releasev1 branch I have created my Register branch.
I have did checkout through source tree too. But, ...
1
vote
2
answers
44
views
Reverting multiple commits in IntelliJ
My question is the same as
Reverting many commits in IntelliJ by one commit
but more specific. In the linked question, it asks how to revert many commits at once in IntelliJ or by command line... ...
1
vote
2
answers
87
views
VSCode warning: LF will be replaced by CRLF in
In VSCode, I have this pop-up that says:
warning: LF will be replaced by CRLF in <xxx>
I thought it's a warning but my commit didn't go through.
I check and try to find a place to configure GIT ...
0
votes
2
answers
53
views
Should you commit Nx's migrations.json file?
I've used the nx migrate command that generated a migrations.json file at the root of my project. I've ran the migrations and they were successful.
I've committed the changes done by the migration and ...
0
votes
0
answers
15
views
SVNKit how to commit renamed files and edited files in the same opperation
I'm new to SVNKit. I've been searching for an answer for a couple of days now without success.
From what I found so far to commit a renamed file, a deleted file and a new or edited file the ...
1
vote
1
answer
31
views
What should be the first commit message using commitlint?
If I am using @commitlint/config-conventional, what should be my first commit message using commmitlint? Is it feat: first commit or a build: first commit or a chore: first commit?
0
votes
2
answers
54
views
Why I am not able to commit any repository in github?
I have many private repositories on my GitHub. Until yesterday I was able to commit to any repository on my GitHub. But today, I am trying to change the readme.md file in my repository, I am not able ...
0
votes
0
answers
32
views
Java DB2 committing transaction involving row insertion
I am trying to insert a row into my DB2 table in Java as a transaction. However, I am unable to commit my insertion. I would be very grateful if someone could tell me what is wrong with my code
public ...
-3
votes
1
answer
32
views
passphrase recovery for open pgp secret key
I tried to commit changes in GitHub from visual studio code. But it asks me to enter the passphrase to unlock the OpenPGP secret key. I couldn't remember my passphrase. So, now I am looking for how to ...
1
vote
1
answer
100
views
Intellij commit tab missing?
My question is the opposite of this one and this other one where they asked about restoring old behavior for the commit window and local changes.
Intellij 2020+ added a commit tab on the upper left of ...
0
votes
0
answers
20
views
My Contribution activity didn't count my last commits
I just push my commits to github and It didn't count on my profile, I need to know the reason for that.
as you see In this image, It shows only 1 commit on my profile, But on my repository commits ...
-2
votes
2
answers
56
views
How to keep changes if I want to checkout to another branch but I don't want to commit yet?
Let's say I'm on branch A and I do some changes on the branch. For some reason, I need to check out to branch B But the problem is I don't wanna commit them yet. I just wanna keep them without ...
-1
votes
1
answer
30
views
Github is rejecting my push because i adjusted something on the web version [duplicate]
https://imgur.com/a/kXE1cke
I adjusted something on the Github repository from the web interface and also renamed a file from the local git stage. but I can't seem to push my commit to the web ...
0
votes
0
answers
13
views
Remote: Permission to [user]/solutions-terraform-cloudbuild-gitops.git denied to [user]
I'm trying to push my changed files
git push origin dev
but I am met with the error:
remote: Permission to [user]/solutions-terraform-cloudbuild-gitops.git denied to [user].
fatal: unable to access '...
1
vote
1
answer
18
views
Will successive add + remove commits stay in the history?
I've just written myScript.sh, which fixes something specific at this point in time in my project and will do nothing after being executed once.
Since all our code is tracked in Git, and to share it ...
1
vote
1
answer
26
views
How to delete commit and get back changes in Android Studio
I did a commit in Android Studio but I want to make more changes but I dont want to do another commit.
I can see my commit here
What I want to do, is to get back my changes here and delete this ...
1
vote
3
answers
74
views
How to see changes from commit x to y on github?
I'm trying to see all modifications made from 06e27fd143240e8e4d13b29db831bedece2bf2d3 to the latest e1c34175b5556ac5ce1e60ba56db2493dd9f6b52. I tried
https://github.com/gaganmalvi/kernel_xiaomi_lime/...
0
votes
1
answer
52
views
GitHub - PR commit shows old username as author. How do I change author of commit if I have no repo permissions?
A couple of months ago I made a PR to a private org repo (private as in, public users have to request access in order to view it, technically private but not really). It didn't get accepted for a long ...
0
votes
0
answers
12
views
svn commit error minimum number of learners not available
the commit error message is :
minimum number of learners not available
how to solve this problem? I tried svn clean up, and update again
but i couldn't solve. can anybody help me ?
1
vote
1
answer
49
views
Git Workflow - Correct early errors
Let's say I have a branch Master With the following commits:
M1->M2
Then from M2 a branch Feature is created and developed as:
M2->F1->F2->F3->F4
Then a merge request is created from ...
0
votes
1
answer
38
views
Develop branch X commits behind Main branch after successful Pull Request
My Develop branch is showing as 2 commits behind the Main branch after I made a pull request merging Develop into Main on GitHub. It's now suggesting to me to do a pull request and merge Main into ...
0
votes
0
answers
24
views
Should I commit before merging tag to branch?
Should I commit before merging a tag to branch?
I have some staged files ready to commit.
on branch "branch1" created from version 1.0
foo.html
bar.js
hello.java
Now need to merge tag ...
0
votes
0
answers
39
views
Permission Denied for wrong user when I use "git push" [duplicate]
I was using git with my username and email and everything was working well. For one specific project I used different username and email to push some commits for another person. I set back git config ...
0
votes
0
answers
20
views
Rollback solution for a REST service
We provide various update and insert REST services as a central point for processing data on the mainframe. The REST Resources are hosted on one server and are served by different delivery systems.
...
0
votes
1
answer
37
views
cherry pick multiple commits as one without going through each one git apply patch
I have branch A with a few commits I need to cherry-pick into branch B.
In the first cherry-picks I've added code that I've later removed in the last commits.
When I try to cherry pick them using ...
0
votes
0
answers
26
views
Get commit message for submodules in the main repo
I have a main repo - "A" , It has a folder which is soft linked to a folder in repo "B". Able to use the softlinks using git submodule concept .
Tried updating the file in repo &...
0
votes
1
answer
24
views
Bitbucket commits page - greyed out/faded out commits?
In bitbucket when I go to the 'commits' page to see my list of commits for a branch, I see that some commits are full brightness, but others are faded/greyed out. What is the meaning behind this?
I've ...
-2
votes
1
answer
54
views
Git to move head back to latest commit [duplicate]
I have used Git to view some older files using the git checkout <hash> command.
However, now I want to move the head back to the latest commit without saving the changes I did at the older files....
0
votes
0
answers
27
views
How to clear/reset git config commit.gpgsign to true
Hello Im trying to set true to git gpg config, but it have 2 values how do i remove the false value ?
abc@abc-ltmzmtx abc % git config --global commit.gpgsign true
abc@abc-ltmzmtx abc % git config --...
1
vote
1
answer
715
views
GitHub Actions checkout@v3: where is repo downloaded?
I am working with GitHub Actions to build code on Windows, Linux, and MacOS. I use actions/commit@v3 @actions/checkout@v3 to download my repo to each server. However, I do not know where the repo gets ...
0
votes
0
answers
61
views
Gitlab displays different users
There are strange problem with my gitlab/git. I have new and old account. For example, I have a merge request. In 'Commits' tab it display commit and my new account , but in overview tab it display &...
0
votes
0
answers
16
views
What is the meaning of "^" in Git checkout? [duplicate]
Hi i used the command git checkout to retrieve a file from an old commit.
Example:
git checkout <hash>^ -- <filename>
My question is simple.What is the meaning of the ^ after the hash?
...
3
votes
2
answers
101
views
Git revert and cherry pick to omit middle commits?
I have the following commits on GitLab:
3fad532 Last commit
3bnaj03 Fifth commit
vcn3ed5 Fourth commit xxx
aece15d Third commit xxx
385d65a Second commit
556cc58 First commit
I want to ...
1
vote
1
answer
58
views
Getting wrong value of number of commits
def generateVersion() {
def commitCount = sh(script: "git rev-list --count HEAD", returnStdout: true).trim() as Integer
echo "this is commitcount------------->>>>>...
2
votes
1
answer
28
views
How to perform action after aborted Mercurial commit?
I'm using mercurial's pre-commit hook to write out some information to a file inside the repo.
If the commit fails/aborts (like when the user doesn't enter a commit message), I want the file to be ...