Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git & Intellij, How do I commit only parts of a changed file

I can't seem to commit only a fraction of the changes in a file, it seems to be all of the file or nothing, I'm using Git with Intellij, is it possible?

Thanks.

like image 838
Jordan Avatar asked Jan 06 '13 21:01

Jordan


People also ask

Apa fungsi dari GIT?

GIT adalah sebuah version control system yang telah digunakan oleh para developer untuk dapat mengembangkan software secara bersamaan. Fungsi utama dari GIT adalah mengatur versi source code program dengan memberikan tanda baris serta code mana yang perlu ditambah ataupun diganti.

Apa perbedaan GIT dan GitHub?

Git dan GitHub menangani commands secara berbeda Developer yang menggunakan Git dapat menggunakan command-line tool, yaitu pengubah kode dan dapat digabungkan menuju perangkat lokal. Sedangkan, GitHub menyediakan interface grafis berbasis cloud sebagai tempat untuk melakukan seluruh tugas.

Apa singkatan dari GIT?

GIT adalah singkatan dari Group Inclusive Tour. Tujuan penggunaan GIT yakni untuk mengelola versi source code program dengan menentukan baris serta kode yang akan ditambahkan atau diganti. Git adalah sebuah version control system terbuka yang dikembangkan oleh Linus Torvalds pada tahun 2005.

Apakah GitHub gratis?

Menariknya, GitHub bisa Anda gunakan secara gratis untuk membuat unlimited project. Namun, bila ingin mendapatkan fitur tambahan seperti keamanan yang lebih baik dan support langsung dari tim GitHub, tersedia juga versi berbayar dengan harga mulai dari $4 per orang/bulan.


1 Answers

Update - 2/2018: The first EAP build for 2018.1 has landed and it's HERE! It is implemented as checkboxes for each hunk, so you can selectively check on them before making the commit. Enjoy!

Update - 12/2017:

Well 2017.3 was just released and this didn't make it in. So let's hope for 2018.1.

Update - 11/2017:

This has been 'in progress' for months now. The 2017.3 EAP releases have been coming out for a while but this issue hasn't been finished yet. With no updates to the issue other than people asking when it will be done, I'm thinking this will slip to the 2018 release.

Update - 2017:

This issue has been open for years as noted in some of the comments. But it is now in progress and sheduled to land in 2017.3 which is currently in EAP release and should be available this fall. So now, four years after this was asked, you will soon be able to actually do it right in the IDE.

like image 92
Sean Lynch Avatar answered Oct 05 '22 15:10

Sean Lynch