[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [e4-dev] Git best practices
- From: Sopot Çela <sopotcela@xxxxxxxxx>
- Date: Wed, 25 Jul 2012 16:14:36 +0200
- Delivered-to: firstname.lastname@example.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/h/3y6NQ2xTjjp/rxBaBtl8yfMON4r+9JcwVlUSwNlw=; b=TL+rpbUEZfJVBQokq3tXERB+DhLyfBS+qYjTPdse59laqIwNY4QeAdJmJFmi3g6Qcg BEGEfrxeUsXDijLa6jRVSVFJv0lIMGhw87zqnKTJGeak2AAG36bZnxBjfXLruWr9D6Th 7xnqm2hwnS5tCnIZTZ+4JhLzmDJ9kKKwgYOEJI8LN2UQBUJvhzWswt0Lr5vNFg++J4ao M5kvD9j0VwZkvn6XdzCsg0y9GxGC7U775l8nWnBRhjfU6oQJwFM+h42t1GbbUWwJo+Qo yUYNuDVES5tCcYuTr9TvwXgPzsf+Wdmbb2XFdME/5uqW+p7c04YPNKip/tJEIgo3I2nF SAzw==
-Keep your master clean and when you have to start on bug 12345 branch from master to a branch called bug12345. -
-After you work on it, go to the staging view in the Git perspective and take the changes you want from unstaged to staged and commit.
-Take the diff and prepare the patch.
In the case you have to patch the patch I would suggest (there might be a better way) to
-switch back to master,
-branch to bug 12345v2,
-apply first patch (the one from branch bug12345),
-modify things, stage the unstaged, commit
-get the diff to prepare a second patch.
Then back to master. This way you keep your master clean. Also don't forget to pull master before any branching because things might have changed in the mean time.
On Wed, Jul 25, 2012 at 3:46 PM, Joseph D Carroll Jr <jdsalingerjr@xxxxxxxxx>
After working on my first patch , I ran into several difficulties creating a useful patch. If I just committed and selected the commit from the history view, it would create a patch with my changes but it would also include many other changes. I am assuming they are the changes from the previous commit as well, and I have triple checked to make sure I selected the right commit. Also, after committing something I might realize a defect and have to commit the changes, but I will have to revert the previous commit because I am not able to select multiple commits to create a patch.
So I am assuming there are a number of things I am doing wrong. Does anyone have any "best practices" or advice for a guy just starting with git & e4 development?
ps- I have the EGit user guide and I reference that as much as possible. 
e4-dev mailing list