Created
September 13, 2019 10:20
-
-
Save stephanBerger/811c47e738fa7e6d60c0c7830264b054 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git is our friend !! | |
### What is git ? | |
First of all, [GitHub](https://hackernoon.com/tagged/github) is _not_ git. Many people understandably confuse the two. [GitHub](https://github.com/) is a website for hosting projects that _use_ git. | |
Git is a type of [**version control**](https://hackernoon.com/tagged/version-control) **system** (VCS) that makes it easier to track changes to files. For example, when you edit a file, git can help you determine exactly _what_ changed, _who_ changed it, and _why_. | |
It’s useful for coordinating work among multiple people on a project, and for tracking progress over time by saving “checkpoints”. You could use it while writing an essay, or to track changes to artwork and design files. | |
Git isn’t the only version control system out there, but it’s by far the most popular. Many software developers use git daily, and understanding how to use it can give a major boost to your resume. | |
In complex projects, where multiple people might be making changes to the same files simultaneously, it’s easy to get into a weird state. Anyone who’s dealt with “merge conflicts” and those baffling `>>>>>>> ======= <<<<<<<` symbols can attest to this. | |
If you start to understand how git works, you’ll see why conflicts occur and how to recover from these situations easily. | |
### Main commands : | |
To intialize the project, open the terminal and type text , for example : | |
For initialize a project : git init | |
Add description file : git add README.md | |
Make first commit with a description : git commit -m "first commit" | |
Define the way your project will be transfer from local repo to distant repo : git remote add origin https://github.com/dylan-13/website-github.git | |
Command to upload your project : git push -u origin master | |
### Pros and cons : | |
Pros : | |
- less risks to lose your code | |
- You can work offline | |
- Easy way to share your work | |
- Big community with Github | |
Cons : | |
- not intuitive at first | |
- terrible learning curve | |
- | |
- | |
- | |
### Conclusion : | |
What we present you is just the tip of the iceberg. | |
There’s a lot more you need to understand before you can claim to be an expert, but for now, you at least have the basics to be able to work with a team and understand the lingo. | |
> Written with [StackEdit](https://stackedit.io/). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment