Questions about committing a transaction or "unit of work" to a database, application or version control system.

learn more… | top users | synonyms

1
vote
0answers
10 views

add data in loop with db.commit() sqlalchemy PYTHON

I need help with Python code copy_groups = Group() groups = Group.query.filter(Group.project_id == curent_project_id) for i in groups: copy_groups.project_id = curent_project.id copy_groups....
0
votes
1answer
16 views

Build Jenkins Job after commit to repository

I want to have a integration between my repository and Jenkins Job. The idea is that, after commit or push something into specified repository, the specified jenkins job should immediately starts ...
0
votes
1answer
17 views

What's the difference between the tags of git push and git commit

I started to use git about 1 month, but i'm kind of the user that do the commands because knows that works, but don't know exacly why. So i've made some research on the internet looking for some ...
0
votes
0answers
8 views

Find changes in git commit after files where redownloaded and pushed with Netbeans

My coder done some changes on files via shell, and then downloaded all project files with Netbeans. Then he commited and pushed to GIT (bitbucket). However now, instead of several changes commit in ...
1
vote
2answers
27 views

begin on next commit message but do not commit in git

I know that git commit -m [msg] lets me enter a commit message and at the same time commits the added files. I am looking for a git command that lets me append to the next git commit message, but not ...
0
votes
1answer
20 views

Git change author of not pushhed commits [duplicate]

I have two commits,(already commited with bad email) so my push is rejected. How can I change email for these commites without loosing changes?
0
votes
4answers
37 views

Project commits too many files

I just cloned a project using git and opened a new branch. After changing just 1 file I tried to commit the changes but it shows me that I am commiting like 1400+ files. I heard that might be an error ...
1
vote
2answers
45 views

Git diff incorrectly interprets my changes

The problem occurs when trying to diff blocks with same structure commonly appears in html/css for me. Example: Initial commit Now lets add new param to "someblock" and new class "someotherblock". ...
2
votes
3answers
61 views

How to know what differences that “git push” is going to push?

After I have git add, and git commit, my workspace, index cached, and local repository became the same. So how can I know when I "push", what differences are there in this patch set?
1
vote
4answers
36 views

Revert past git commits but keep changes introduced since

I'm new to git and not sure how to approach this. I want to undo a series of specific commits (relating to a single file) that we decided are not a good solution to a problem but I want to preserve ...
0
votes
1answer
15 views

GIT - Notify the author of a tagged line of code

I just got a new job as a developer and going through lots of unfamiliar code I often wonder how it works or if maybe there is a bug but I don't want to ask my coworkers every single time and keeping ...
0
votes
0answers
15 views

Git Staging in Eclipse Neon vs. old-fashioned commit view

Is there any way to configure git staging view in Eclipse Neon to be sorted according file path? The old-fashioned view provides a list of files to be staged, that is sortable according the path of ...
0
votes
1answer
25 views

When are transactions commited with JEE JPA (EclipseLink 2.0)?

When are transactions committed with JPA (EclipseLink 2.0)? This is my problem: public void methodA() { while(something) { methodB(); } } public void methodB() { //Insert new ...
0
votes
1answer
10 views

github remove single file from commit history

I would like to remove a single file from my commit histories. I have already deleted the file, not knowing that it is still visible in my commit histories (I'm new to github...). There are several ...
0
votes
1answer
41 views

Git Commit creates a new Head - PyCharm

When I commit my changes using PyCharm, it creates new Head. How can I prevent this? Why does this happen? (I'm not familiar with using git via terminal)
0
votes
1answer
28 views

Gitlab runner conditional run depending on commit message

I have been using Gitlab for a while and now set up a build server. As I change machines (Notebook/PC) I often commit and push to save my work to my gitlab server as the contents are regulary backed ...
1
vote
3answers
36 views

Deleted all commits using 'push -f origin master' any way to restore?

I commited using 'git push -f origin master' and it deleted all my previous commits. Is there any way I can restore them or at least show all my previous commits?
0
votes
2answers
32 views

git commit shows untracked files

I want to commit my files and type this command git commit -a -m "all base files" it shows some untracked files that contains files I want to track.. I need to commit html files, checked ...
0
votes
0answers
9 views

Is there any way to edit github commit online that is committed recently?

I have typo in my recent commit and I would like to change this immediately. In this situation is there an easy way to edit the commit?
0
votes
1answer
9 views

Commit previous local commit before latest revisions - Xcode

I have an iOS app that I connected to a GitHub repository. I tried to make a commit on the 14th November 2016, but it failed as my GitHub account was suspended (due to payment issues). I have now ...
0
votes
1answer
22 views

Source tree crashed and repository is messed

I use source tree for my project and I was doing a commit, source tree crashed and seeing that it didn't do the commit I tried to reverse the commit because it messed up the code. I've attached an ...
-1
votes
0answers
8 views

Commit to Jira docker image doesn't save changes

I have downloaded a jira image which is "cptactionhank/atlassian-jira " from kitematic (GUI for docker)and running it in a container through this command: docker run --detach --publish 8085:8085 ...
2
votes
1answer
26 views

Bitbucket REST interface and GIT; how to get a log history between two tags from a branch

I am building an app to which requires all the commit comments from git commits against a branch on remote origin. Our repository is hosted on a BitBucket server and is a Git repository. I have ...
0
votes
0answers
27 views

Revert repository to a commit by SHA

I have an issue with my GitHub repo. The issue is that a previous "merge" deleted some commits. I found the commit that I want to restore in the GitHub API, but I can't get it. My repo: https://...
1
vote
0answers
12 views

How to synchronize my mercurial projects before suspending and just after resuming

I've tried by including the corresponding hg commands in the /etc/pm/sleep.d/00_update file, in the cases of hibernate|suspend) and thaw|resume), but there seems to be problems, as the wifi connection ...
0
votes
0answers
16 views

publishing code changes to production

How can be automated the process of publishing code changes (files) on large project to production environment. When the project is big and many devs are working on it, there are some questions: 1) ...
0
votes
1answer
37 views

bin/sh: opt: command not found

When I use the command git commit I get the message bin/sh: opt: command not found. I am using OS X El Capitan Version 10.11.6 and I installed git using Homebrew. I also have XCODE, which I believe ...
0
votes
3answers
38 views

Git: how this bifurcation happen?

Situation I have a local Git repo. I have only on branch: master. I used to have another branch but I merged it into master and then deleted it. Such merged and deleted branch bifurcated from ...
1
vote
1answer
43 views

How do I know if a git commit has been changed?

Someone has committed something a few months ago. After that, multiple other commits have been done. Is it possible to see if someone has changed the contents of that certain commit by amending or by ...
1
vote
0answers
28 views

CommitDeniedException Spark : how to resolve this?

I am getting : org.apache.spark.SparkException: Task failed while writing rows. at org.apache.spark.sql.execution.datasources.DefaultWriterContainer.writeRows(WriterContainer.scala:272) at ...
1
vote
2answers
25 views

How to do a git commit with a subject line and message body?

I want to improve the way I do git commits and I've been reading around the web. I followed the site here http://chris.beams.io/posts/git-commit/ and this lead me to https://git-scm.com/book/en/v2/...
0
votes
0answers
22 views

How to check successfully multiple (two) PreparedStatement execution one by one on a manual commit JDBC connection

I have two table (saleitem, balance) that when a customer buys any item, it must be inserted into saleitem and subtracted from their balance. So I created a manual commit connection and if all ...
0
votes
0answers
18 views

in hibernate validator, how validate class before commit (at the end of transaction) not per insert/update

I have project in Spring/hibernate and I want to use hibernate validator ver 5.1.1.Final(custom constraints). I have two class: public class RelatedValidator implements ConstraintValidator<...
0
votes
2answers
48 views

Git commit keywords to interface TFS fields

I use Git Extensions as interface to Git and keep the work tracked with Work Items in Visual Studio Team Foundation Server 2015. A Git commit can be associated to a TFS Work Item using the syntax "#...
0
votes
0answers
37 views

How to configure Jenkins to build a repository locally, then commit the output files to another repository?

So basically I already have the deploy part working in one job, using MSBuild 14.0 and the above configuration: /p:Configuration=Release /p:Platform=AnyCPU /t:WebPublish /p:WebPublishMethod=...
0
votes
1answer
27 views

How to do CVS commit using java code

I need to commit a file into CVS repository using java code. My requirement is, When a submit button is clicked, I need to receive the call to java method and then commit a file to CVS repository ...
0
votes
0answers
16 views

DirectoryEntry.MoveTo() committing changes without calling CommitChanges()

The documentation on DirectoryEntry.MoveTo(DirectoryEntry) states in the remarks: If UsePropertyCache is true, call the CommitChanges method on the new object to make the move permanent. After, I ...
0
votes
1answer
23 views

hg: undo checkout of old commit while having local changes

Using mercurial, I regularly run into the following problem which I am not able to securely resolve: I commit my changes doing hg commit -m "my changes" I edit some file I checkout an old commit ...
0
votes
1answer
37 views

Need to find commits on a specific branch

Can someone please share a code snippet that shows how I can pick out commits on only ONE branch using the JGit API. If I use RevWalk, I get the entire tree, including sub-branches that have been ...
1
vote
1answer
25 views

Count commits since last change to file

I'm currently working on a system that automatically increments a version number. The version number is currently stored in a file using a major, minor and patch version. I thought about getting rid ...
0
votes
1answer
76 views

how to list all pull request with count of files changed

I am looking for some command which tells me number of files committed in a single pull request. I would like to know count of files in a single pull request individual from beginning. Question ...
3
votes
1answer
49 views

Why some commits are shown as committed “on GitHub”?

I am just experimenting with GitHub. Why some commits are shown as "committed on GitHub a day ago" and others as "committed a day ago"? For example here: https://github.com/apple/swift/commits/master
2
votes
0answers
17 views

How to paginate affected files in a commit using GitHub API?

When getting the files affected by a commit, I noticed that there is a limit in the files array, which lists only the first 301 files. For instance, the following commit has more than 6 thousand ...
1
vote
1answer
54 views

java How should implement concrete MQ GET & COMMIT/BACKOUT

Below I have posted a Java MQ GET routine to get info from MQ and store it on DB. But the problem is raised when the connection is lost between GET and COMMIT. Connection lost is interpreted as COMMIT!...
0
votes
1answer
7 views

What all information we can deduce merely from the updated IndexVersion and Generation numbers on Solr admin's core page?

I noticed whenever we commit some data to Solr, generation number increments by 1 and indexVersion changes to some other number (greater than earlier number but not sure how its count increases).
0
votes
0answers
19 views

Jenkins: Trigger build on commit from whitelist of users

I'm trying to use the Jenkins git plugin to monitor a private git repo and trigger builds only on commits from specific whitelist of users. I see options for blacklisting specific user commits but not ...
1
vote
1answer
19 views

How to make fork changes reflect with the master when updated?

Suppose i forked a repo from Github now iam having 2 project sources one is the main master branch in owner repository and other is my master branch in my fork. Now i got a problem like this. ...
0
votes
2answers
24 views

How do you undo your Add Line Break in Git Commit Message?

I know how to add multiple lines already in my git commit message. I am using: git commit -m " >Text here... >[Accidental Enter Key] However, what if I mistakenly pressed the Enter button ...
1
vote
3answers
59 views

how do I complete a git commit?

I typed in 'git -commit' and got the following on my terminal # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # ...
-3
votes
1answer
55 views

I get an error when I type git commit -m “My message”

This is the error I receive. Check the below image