Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git & Android studio : Change the details of submitted change list

I'm using git plugin with android studio. My problem is when I submit a change list(public commit) but my comment in change list was wrong/missing and I want to change it.

QUESTION :

Is there any way to edit information of my public committed change list by git add on in AndroidStudio.

I'm using MacOSX.

like image 281
ThaiPD Avatar asked Jun 09 '15 08:06

ThaiPD


People also ask

What does Git stand for?

The initial working version of Git's code was very simple, so much so that he finds it deserving of insult. An acronym for Global Information Tracker, at least when it works properly.

Is Git a programming language?

Git is not a programming language, but it's become incredibly important for computer programmers working in almost any language you can name. Today, Git is the de facto standard for what's known as version control software.

Is Git still used?

By far, the most widely used modern version control system in the world today is Git. Git is a mature, actively maintained open source project originally developed in 2005 by Linus Torvalds, the famous creator of the Linux operating system kernel.

What is difference between Git and GitHub?

what's the difference? Simply put, Git is a version control system that lets you manage and keep track of your source code history. GitHub is a cloud-based hosting service that lets you manage Git repositories. If you have open-source projects that use Git, then GitHub is designed to help you better manage them.


2 Answers

For Android Studio 3.1.1

  1. Click Version Control tool window (at the bottom of the window).
  2. Click Log tab. You will see a list of your commits, with their comments.
  3. Right click the commit you want to change its comment, then click Reword.
like image 77
Azfar Avatar answered Sep 20 '22 01:09

Azfar


You can't change the last commit comment from the editor. You can amend the last commit, so add an comment to the last commit, but you will also have to commit a change, to do so :

When committing, you have a checkbox Amend commit, select it. Your commit will be amend to the previous one. See this thread

But if you use the commandline, you might be able to have more options to do what you want, from this thread :

git commit --amend

Will open your editor, allowing you to change the commit message of the most recent commit.

like image 29
flafoux Avatar answered Sep 20 '22 01:09

flafoux