Most voted "commit" questions
commit is a command used in Git that serves to send modifications made to the source code of a project to the page of that project.
Learn more…61 questions
Sort by count of
-
42
votes3
answers105525
viewsHow do I get the project back to a specific commit?
Assuming a condition where, I have a project with 20 commits, and I decide for inexplicable reasons to go back some independent commits if I want to go back 4, 5 or 10, assuming the description of…
-
22
votes2
answers4822
viewsWhat would be the best practices for commits in Git?
There are best practices to perform commits and write comments on these commits, for better communication and understanding during the software development process?
-
21
votes3
answers5937
viewsHow do I see which commits change a certain file?
I implemented a new functionality for my program in an Func1.cpp file, in the branch Func1. Then I created another feature - in the file Func2.cpp -, but I forgot to create in a branch separate…
-
10
votes3
answers1922
viewsWhat is the appropriate amount of changes to a commit?
I have noticed that in many public projects Github, the commits usually contain very small changes. There are several cases of commits with changes in a single line of code. In others, there are…
-
7
votes1
answer1470
viewsHow to commit only to a piece of a file in Git?
When modifying multiple parts of a file, you can commit to just one piece (for example, a new function)?
-
6
votes3
answers4481
viewsDifference from: "git commit -am" and "-m"
What would be the difference between typing: git commit -m "Teste" and git commit -am "Teste"? I’m learning about Git and would like to know how to differentiate it.…
-
6
votes1
answer1288
viewsHow do I delete a commit from github history?
I would like to delete a commit made on github but WITHOUT deleting the changes, which is why I discovered that in one of my files the code contained personal information and by altering it that…
-
6
votes1
answer283
viewsGIT LOG: How do I search for a commit through a specific message?
I wonder if there’s any way to use the git log to list commits, filtering through a specific message. Example: git commit -am "Correção do ícone de exclusão na listagem de usuários" In the above…
-
5
votes2
answers2783
viewsAdd new file to commit
How do I add new files to a commit already done in Git without creating a new commit? If you have already pushed to the remote server, like "re-commit"?
-
5
votes2
answers4605
viewsGIT - Commit to another branch
I am working on a project that has two branchs (master and dev). I started the implementation of a new Feature in the system but, halfway through, I realized I was making the changes in the master,…
-
4
votes2
answers2629
viewsHow do I "turn" a specific commit into a branch?
I’d like to take one commit previous specific and turn it into a brancho. Is there any way to do that in the Git?
-
4
votes2
answers1920
viewsHow to modify commits that were not pushed
I need to edit a commit message and add another file. I haven’t pushed the commit yet, there’s a way to fix it?
-
4
votes1
answer38
viewsHow to return only the last commit date?
I know if I use the remote git log I can see commit ids in my repository and if I use git rev-parse HEAD, I can see the name of the last commit. But I needed to return only the date information of…
-
3
votes1
answer418
viewsIs it possible to keep a branch with pending changes in Git?
Imagine I have a commit from a file in the master branch texte.txt. So I create a branch called teste2, I check it out and create a file called teste2.txt, but I don’t commit. If I give a git…
-
3
votes2
answers92
viewsHow to take the signature of changed methods in a commit
So guys, I need to subscribe to all the methods that were changed in a commit, whether updated, removed or added. Example: In this commit The changed methods were: - br.ufrn.ase.Classe1.metodoB(int…
-
3
votes2
answers303
viewsEdit local files without committing
In a project there are some files that need editing to run the local server, such as .htaccess, config.php, among others. In the branch master, We keep these files with the data in production. There…
-
3
votes1
answer2328
viewsHow to delete an old Git commit?
guys, earlier I was playing some stuff in git and unintentionally copied a folder with a file inside and commited locally, then I deleted it and committed the deletion locally, I was developing what…
-
3
votes1
answer1082
viewsHow to access an earlier version and then go back to the latest git checkout
The question is simple: Imagine that I have 10 versions. I used the git checkout on Friday to quickly analyze a line. How can I return to the latest version if her ID is missing from mine git log?…
-
3
votes1
answer2437
viewsThe git push command is not working after removing a commit
I needed to reverse a commit and locally it works well. Now when I push to my repository, it presents me with error. My attempt git fetch origin c6f1668e2fac57401a99a2184a47f0b58c15e403 git reset…
-
3
votes1
answer790
viewsHow to do Semantic Versioning (Semver) with GIT?
One question that I’ve always had and gives me a lot of headache is about how I should do Semantic Versioning with GIT. I should take into consideration the commit, one "release" of the project, or…
-
3
votes1
answer677
viewsWhat does Please Tell me who you are in git mean?
I am totally new in this area of technology, I am following a course but I stopped. When I try to give a git commit -m "commit inicial" the string message in git is this: Author identity unknown ***…
-
2
votes1
answer174
viewsCommit Structure
I wonder if you have how to change a commit structure, in the case before it is made a predetermined structure, example: GIT_AUTHOR_NAME = '$name(Previamente registrado)' GIT_AUTHOR_DATE =…
-
2
votes1
answer175
viewsIs it possible to reverse the changes from just one commit file?
Suppose it was made a commit and that a file has been modified erroneously. Is there any way to reverse this commit only for the file you want?
-
2
votes1
answer601
viewsCommit a vendor folder file
My vendor folder is by default ignored and I know this is the right one, but it turns out I need to commit a specific file that is in this folder, would that be possible? If not, what other solution…
-
2
votes0
answers68
viewsDescription of Files and Directories on Github
I cannot insert an individualized description into directories and files on Github. In several projects I saw this resource, but, according to the documentation, I’ve used the git add and…
-
2
votes2
answers3400
viewsError: Unable to create 'C:/Myproject/. git/index.lock': File exists
Suddenly I went to "commit" my project, when out of nowhere appeared this message: Erro: Unable to create 'C:/MyProject/.git/index.lock': File exists. If no other git process is currently running,…
-
2
votes1
answer599
viewsHow to commit using command line in SVN
Empty folder created in SVN. I need to put the content in it, but I don’t want to do one by one all file and folder additions. I am on linux and I would like to do by command line, but I haven’t…
-
2
votes1
answer451
viewsHow to join multiple commits from the same file?
I did three commits on even file using git commit arquivo.ext -m "msg". I realized that these three commits would look better together, as if they were one commit. There are ways to do this even…
-
2
votes2
answers510
viewsHow to return the git add --all command
I ended up using this command improperly, and added many files that should not, wanted to return the previous state, command git reset HEAD <file> returns only one file, and as there are many…
-
2
votes1
answer75
viewsReversing the commit
Talk guys, I have a problem in my repository. I want to revert the repository to a previous commit, in which case it would be the commit that’s in red. commit…
-
1
votes1
answer124
viewsStore data in the database using PDO::commit
Hello... I never used PDO::Commit, but now I see the need to use ... and just now, even following the php doc and some examples on the net, I can’t store the data ... here’s my code: php connection.…
-
1
votes1
answer427
viewsAssociate commit to Bitbucket Issues
With Bitbucket it is possible to work with "Issues", in which case it could be used as "tasks/bugs/etc...". My question would be whether it is possible to associate one or more commits to a…
git commit versioning bitbucket flow-controlasked 9 years, 7 months ago Anderson Brunel Modolon 1,111 -
1
votes1
answer586
viewscommit/rollback in two tables with PDO
First of all, the code below works, there is no error (but possibly can be improved). I have the following method in PHP: <?php public function ajustarUnidadeServidor($ajusteExercicio){ try {…
-
1
votes0
answers69
viewsGIT Server integrated with Redmine
I have a built-in git server with Redmine, it’s set right and it’s being used by several people, but when the commit comment has double quotes (") it’s not synchronized. I use a script, below the…
-
1
votes0
answers29
viewsCommit Lock with Redmine
I need to block a commit until its condition in Redmine is acceptable. Knowing that the required status index is 2(In progress). Example(I don’t use this just for understanding): if ["status" ==…
-
1
votes2
answers96
viewsHow to debug errors in Realm DB?
How can I debug this error and know its origin: lib c++Abi.dylib: terminating with uncaught Exception of type Realm ::Incorrect threadexception: Realm accessed from incorrect thread.…
-
1
votes0
answers100
viewsHow to block files by extension in SVN
I need to create a hook in SVN, pre-commit that blocks any files that are with extension ". rar" and ". zip". And display a message like " The commit has been locked, this type of file cannot be…
-
1
votes1
answer141
viewsHow to remove improper commits from a remote branch?
The company I work for hires some interns who take care of tasks small of various languages and different parts of the program (in order to enable them), but recently one of our interns made some…
-
1
votes0
answers731
viewsHow to integrate Sublime Text with a Github repository
I own a repository on Github, like I integrate this repository into Sublime Text to commit my sources? I searched tutorials, but could not find.
-
1
votes1
answer277
viewscommit with the @Transactional annotation in Spring
Good afternoon! I am new to Java and Spring and I am in need of help in the code below. I need every iteration of for to be performed the commit, but it is only being performed at the end of the…
-
1
votes0
answers102
viewsHow do I upload files in GIT that are more than 50MB in commit size?
I’ve tried using Git Large File Storage but ended up not working.…
-
1
votes0
answers82
viewsIs there a way to delete comments from a github commit?
Is there any way to delete a comment from a commit? Or is there an invisible file that saves those comments and logs? (either in the files of the pc or in the repository on the website). It can be…
-
1
votes1
answer43
viewsRemove commits from a repository
I needed some way to remove commits from a Fork mine from a repository and leave only the selected ones. I’ve tried to use git rebase, as suggested on several topics, but unsuccessfully, the changes…
-
1
votes1
answer74
viewsHow do I delete a commit in the Github remote repository?
I had never been in this situation, I have a public repository on Github and I need to delete the last 5 commits I did, both from the location and the remote that appears to everyone on Github. How…
-
0
votes2
answers11150
viewsHow to Mount a Transaction with Commit and Rollback on Oracle?
I’m trying to mount a transaction on Oracle, but I don’t know how to perform a Rollback in case there’s an error in one of the querys. I searched some websites, but I couldn’t find anything clear…
-
0
votes0
answers38
viewsCommit only at the end of the registration stages
I want to register that will have several forms, for example: first I will register basic information, to advance register more advanced information according to what was passed in the 1st phase of…
-
0
votes0
answers30
views -
0
votes2
answers642
viewsI removed branchs (Git), but they "continue" there, how to remove it for good?
Work in a team of 3 people and for each action we created a branch; over time the amount of branchs created will become great, so I decided to eliminate some branchs that are no longer being used…
-
0
votes1
answer278
viewsProblems committing to GITHUB (inaccessible folder in git)
Guys, I’m having trouble trying commit on github. As demonstrated by print below, I want commit the briefcase Programming Techniques, but I can’t. I’ve already deleted the repository and the problem…
-
0
votes2
answers100
viewsError missing commit in git
I made a mistake typing a command into git: **git commit -m startup* I got that message, but I don’t know what it means. C:\Users\alex.jose.silva\Documents\demo2 (master -> origin) λ git commit…