assignments: reset - ajorquera/git-workshop GitHub Wiki

With git, you can accomplish this tasks in different ways. Please just use git reset.

There is a repo called SunCal where our company wants to contribute, but there are 4 employees that don't know how to use git reset properly. Try to help them.

1. Ups, my bad

PLEASE HELP!! 🙏🙏🙏🙏🙏🙏

Hello, I'm John the Ripper :neckbeard:. I was doing some work and I forgot to remove some console.log in my last commits. I try cheating to delete my tracks but I don't know if someone will notice. Checkout to assignments/reset/ups-my-bad and try to fix it before my boss sees the code 😨. Please, keep the same commit message.

2. Cleaning up

This is my first week in the company 🏢 and I want to make a good impression. My friends call me Linus 🤓. I was assigned a ticket to develop a moon transit calculation function, but I'm new with git and I think I made to many commits for this task. I would be neat if instead of X commits, I had just 2 commits using angularjs commit guidelines. Checkout branch assignments/reset/cleaning-up

3. Removing mistakes 🙈

I'm John and I'm lost, as usual. I was working on one of my colleague's branch, and I did something wrong to it. I don't know how to fix it. It's in the branch assignments/reset/removing-mistakes.

4. My amend

Hey, I'm Grace 👵 . I have an issue with my current job. My boss 😈 doesn't let us use git commit --amend to fix any mistakes in our commits, secretly I'm thinking of using git alias to implement my own amend. Maybe you can think of some way of implementing it. I added a .gitconfig file into the project. You can set the alias there. Use this branch assignments/reset/my-amend

⚠️ **GitHub.com Fallback** ⚠️