Wrong step in 1.2: Git workflow
See original GitHub issueYou 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:
- Created 6 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will update my pull request when I have access to my computer.
@elamperti, yes I suggest you mention this as a tip or preference rather than instruction.