> git: 'gud' is not a git command. See 'git --help'.
Here's why you should learn Git:
* Basics are pretty easy!
* (Almost) every developer team & job requires it
* Stop worrying about breaking your code
* because you can always revert back🙌
#100DaysOfCode #Git
🧵⬇️
1. Download git git-scm.com/downloads
2. Use a terminal and navigate to your project
3. Run "git init"
4. Create a GitHub account github.com/join
6. git config --global user.name 'your name'
7. git config --global user.email 'your-github@email.com'
8. Follow the steps GitHub tells you (see image)
1. git init (initialize repository)
2. git add <file> (add a file to index)
3. git status
4. git commit ("save" changes)
5. git push (push changes to GitHub)
6. git pull (download changes)
git add .
If I want to add all the files in the current directory / folder so I can commit them
Some additional ones:
* git branch my-branch name (create a new branch)
* git checkout my-new-branch (change to a branch)
More info on these below
Create a .gitignore file in the root of your project (note the . )
Then add the files or directories to that file like:
my_secret_directory/
favorite_developers.txt
*.zip
and it will ignore those files after you commit the gitignore
git checkout master
git merge my-new-feature
git push
Here is an article on a branching strategy you could use, but it's not required. You can do whatever you want.
git-scm.com/book/en/v2/Git…
I even referenced it for this thread so I was sure I didn't forget something 😂
📽️🔗
This is the end of the thread