LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2012, 04:12 AM   #1
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Debian
Posts: 91

Rep: Reputation: 25
Question Creating a patch with git


Hello!
(git newbie here, never used it before)
I was wondering what is the correct way to create a patch for a project, to which I don't have commit permissions?
Will
Code:
git pull git://example.com/project.git local_copy
... edit files ...
git diff > $HOME/fixes_for_project.patch
be enough or I need something more, like branching and stuff?
I was reading this tutorial: http://ariejan.net/2009/10/26/how-to...atch-with-git/ but then I found git diff which generates a single patch for all changes I've made and I wonder what is the differences? Thanks in advance!
 
Old 07-17-2012, 08:12 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
git diff shows you changes that have not been commited yet to your repository.

You may not have permissions to the upstream repository but you can always commit to your own repository (the one you created with git pull).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with git-svn on Slackware-13.37? Try this patch. DragonWisard Slackware 1 07-13-2011 03:16 PM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
tor git repo security patch mrmnemo Linux - Newbie 5 01-17-2011 06:19 PM
Git - create patch after local commit student04 Linux - Software 2 10-11-2010 01:04 PM
generate patch between two revision from git repo harish2704 Linux - Software 2 08-06-2010 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration