question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong step in 1.2: Git workflow

See original GitHub issue

You have a step “Make Changes.” (here), where you say this:


git add
git commit -a

Why:

git commit -a will start an editor which lets you separate the subject from the body. Read more about it in section 1.3.


However, this will not work. When someone runs git add, it will output the following:

➔ git add
Nothing specified, nothing added.
Maybe you wanted to say 'git add .'?

Also, git commit -a does NOT mean “start an editor”. It means the following (straight from man git-commit):

-a, --all
           Tell the command to automatically stage files that have been
           modified and deleted, but new files you have not told Git about
           are not affected.

If you want, I can make some changes to this and shoot you a PR. 😄

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
piotrgajowcommented, Oct 28, 2018

I will update my pull request when I have access to my computer.

0reactions
vpanjganjcommented, Oct 28, 2018

@elamperti, yes I suggest you mention this as a tip or preference rather than instruction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrong behaviour when combining 'continue-on-error ... - GitHub
Describe the bug I found an issue when combining continue-on-error in a step 1 and failure()' in a step 2. It is not...
Read more >
2.4 Git Basics - Undoing Things
At any stage, you may want to undo something. Here, we'll review a few basic tools for undoing changes that you've made. Be...
Read more >
Git pull into wrong branch - Stack Overflow
My topic branch was called DPM-93 and my git workflow was this. # do some work git checkout DPM-93 git commit -m "did...
Read more >
Git Flow Is A Bad Idea - YouTube
What is GitFlow and why is it a bad idea if you want to practice Continuous Delivery or Continuous Integration? GitFlow is a...
Read more >
User:Sam Hemelryk/My Moodle Git workflow - MoodleDocs
1.1 Step 1: Create a directory to create the repositories within; 1.2 Step 2: Create a master repository; 1.3 Step 3: Create a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found