A Git from the Future (Comic)

A Git from the Future (Comic)

Posted 1 year ago in Beginners, Comics, Illustrated, Git

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

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!