• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. Skara
  4. FAQ

Page History

Versions Compared

Old Version 36

changes.mady.by.user Erik Helin

Saved on Mar 26, 2020

compared with

New Version 37

changes.mady.by.user Erik Helin

Saved on Mar 26, 2020

  • Previous Change: Difference between versions 35 and 36
  • Next Change: Difference between versions 37 and 38
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The above command will open your editor where you willl the commit message. If the commit message only is a single line then you can pass it directly to commit command: git commit -m 'Your commit message'.

How can I see information about a commit?

Code Block
languagebash
$ git show <COMMIT>

I forgot to add some changes to my commit, can I update my last commit?

Yes, but you will be mutating history. If you have already pushed the commit, then other people might depend on the commit you are about to mutate. If you have only pushed the commit to your personal fork and you are not currently collaborating with someone, then it is fine to mutate the history (you yourself are the only one who will be affected). If you have pushed the commit to a project repository, then it is not fine to mutate history, since you cause problem for other contributors.

In many cases, for example when working on a pull request, you can just make an additional commit and push it. The Skara integrate command will squash (collapse) the commits in the pull request into a single commit before integrating it, so the final result will be as if you only had made one commit.

If you still want to mutate history and update the last commit, first add the files you want to add to the commit:

Code Block
languagebash
$ git add path/to/file1 path/to/file2

Then run the following command to amend the HEAD commit:

Code Block
languagebash
$ git commit --amend --no-edit

GitHub

Configuration

How do I setup two-factor authentication (2FA)?

...

Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.23
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 315, "requestCorrelationId": "2d2d098723ff4b82"}