Questions tagged [commit]

38 questions
14
votes
2 answers

How do I create a cron job that will commit my project changes to git on a weekly basis

I'm using git for the purposes of making a historical transcript of the changes made to my project. I understand it's not the ideal usage but it's the usage pattern I've chosen for various reasons which I won't get into for the sake of brevity. How…
Jason
  • 1,909
  • 7
  • 31
  • 40
10
votes
2 answers

How do I change the highlighted length of git commit-messages in vim?

I'm of the opinion that the orthodox 50-character limit on git commit messages is absolutely ridiculous. (Primarily because I think using an 80-character wide Terminal in 2015 is equally ridiculous.) :P I've fixed a few other glaring issues with…
ELLIOTTCABLE
  • 2,708
7
votes
1 answer

Fix dangling commits and tags in a git repository

I have a bare git repository that, according to git fsck --full, has about 300 dangling commits and tags. About 90% of it are dangling tags. I'm not sure where these issues come from, but since the repository seems to work fine, they might have been…
7
votes
1 answer

Remove large file from several commits ago (in git)

I had made several local commits to my codebase, and tried to push it to my repo, but there were quite a lot of large files. I just kind of gave up, and continued working, making local commits. I've deleted the large files now, and committed again,…
Gentatsu
  • 173
6
votes
2 answers

Access an old commit in github

I want to find commit 2a89985 in this Project in Github. I want to find out how to access a commit If I know the commit number? Since it is a big project there seems to be a lot of commits. Is it possible to access it from terminal?
Stormvirux
  • 1,063
6
votes
1 answer

"file not found" error while commiting

I have a working copy, checked out from SVN repository. When i'm trying to commit, i get following error: svn: File not found: revision 57, path '/trunk/path/to/my/file/logo-mini.jpg' I've found this file in the repo and noticed, that it has only…
AntonAL
  • 745
  • 2
  • 14
  • 27
5
votes
0 answers

git file COMMIT_EDITMSG is set readonly after each commit

I'm using git on Windows 7 (my user is in the local admin group) with my dev project, but everytime I commit changes, the file .git/COMMIT_EDITMSG change too : It's content is replaced with the last commit msg (which is fine) It's property changed…
ylerjen
  • 151
4
votes
1 answer

Docker commit not working

I have lucid:latest image with Ubuntu 10.04. After run this image I'm trying to change host name: docker run -t -i lucid:latest /bin/bash After changing hostname in another console window I'm typing commands: $ sudo docker ps CONTAINER ID …
QkiZ
  • 384
4
votes
1 answer

How to search for only a certain file extension for commit?

I have an ongoing problem using the TortoiseHG Workbench commit window to search for only a certain file type, such as with Python modules. Often I have tons of .pyc files that I don't want to be displayed in the list and I only want to filter for…
user553702
  • 1,451
3
votes
1 answer

Edit All Git Commit Messages to Remove Line

I have a Git repository that was converted from Subversion with git svn. I do not have the original Subversion repo anymore and all of the commit messages have a line like this: git-svn-id: file:///home/jordan/Development/wxSVG/wxsvg-svn/trunk@618…
2
votes
2 answers

How can I make Github for Windows use my real name for commits?

Normally, I use the email address and my real name for git commits. However, the Github for Windows client defaults to using the Github username for the commit author info. Because of that, I have commits with both names mixed up in the repository…
danijar
  • 399
2
votes
3 answers

I see "Uncommitted changes" but the files are identical?

I recently bought a new PC and downloaded the GitHub for Windows version: 1.2.6.4 f054d9f, then: Logged-in cloned my repo to Local made sure files were downloaded locally closed GitHub overwrote 1 file locally opened GitHub reviewed the uncommitted…
2
votes
1 answer

eclipse: keyboard short cut not working

In eclipse - helios (Ubuntu 10.04), the git commit menu displays a keyboard short cut also - Ctrl+Alt+C. But this key combination will not activate this menu. How to use the keyboard short cut for git commits?
suresh
  • 151
  • 6
2
votes
2 answers

Open file from previous commits without overwriting working copy

VSCode allows open files from previous commits in comparison editor, is there a way open a file in normal editor, without any comparison? I'd like to have 2 files opened in 2 tabs, one - current working version and another previous committed…
vanowm
  • 297
2
votes
2 answers

Xcode 10.2 fails local commit with "Multiple working copies failed to commit files"

After Xcode updating to 10.2, the local commit fails with message "Multiple working copies failed to commit files" Anyone experiencing the same problem? A thing I did between commits is that I updated the Pods, I wonder if this can have something…
1
2 3