DEV Community

Cover image for A Git from the Future (Comic)
Erika Heidi
Erika Heidi

Posted on

65 22

A Git from the Future (Comic)

So far, we've talked about:

But we haven't talked yet about how Git projects start. When working with Git, we often clone existing projects, since this is part of a typical collaboration workflow. What if we want to bootstrap a whole new project of our own?

In this last comic of the Illustrated Git series, we'll have a recap of previous concepts and commands in a new project workflow using git init:

A Git from the Future comic

A git init will initialize a new Git project in the current folder. A .git folder will be created, holding important information about your project's files.

Because you just created a new project instead of cloning an existing one from a remote source, your upstream is still unknown to Git. You'll need to manually set it with a command such as:

git remote add upstream https://github.com/USER/PROJECTNAME.git
Enter fullscreen mode Exit fullscreen mode

Once the remote upstream is set, you can push your commits to your remote Git repository.

I hope you enjoyed this illustrated Git series!

Do you have a suggestion for a new illustrated series? Share in the comments!

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (16)

Collapse
 
madza profile image
Madza β€’ β€’ Edited

Some people just have raw talent in drawing. πŸ’Ž
And you're definitely one of them... πŸ’―

Collapse
 
erikaheidi profile image
Erika Heidi β€’

Aw, thank you so much! πŸ’–β˜ΊοΈ

Collapse
 
emilie_gl profile image
Emilie Gervais β€’

These posts are beautiful, love the comics! =)
An idea for a next one: git reset?

Collapse
 
flavioluche profile image
FlΓ‘vio Luche β€’

Wow! It can't be clearer! Sharing now!

Collapse
 
nombrekeff profile image
Keff β€’ β€’ Edited

Nice way of teaching πŸ‘πŸ‘

Collapse
 
erikaheidi profile image
Erika Heidi β€’

Thank you! 🀩

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
erikaheidi profile image
Erika Heidi β€’

Thank you! 😁☺️

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
erikaheidi profile image
Erika Heidi β€’

Thank you β˜ΊοΈπŸ’•

Collapse
 
ronaldoperes profile image
Ronaldo Peres β€’

Very nice!

Collapse
 
erikaheidi profile image
Erika Heidi β€’

Thank you! ☺️

Collapse
 
markoshiva profile image
Marko Shiva β€’

Is this comic done by you?
I must say its an amazing comic. Very nice illustration and story line. :)

Collapse
 
erikaheidi profile image
Erika Heidi β€’

Yes, it's all by me both story, illustration and coloring 😊 thank you

Collapse
 
waylonwalker profile image
Waylon Walker β€’

That is an amazing comic. The graphics and the story are so very well done!

Collapse
 
erikaheidi profile image
Erika Heidi β€’

Thank you so much πŸ’žβ˜ΊοΈ