#Setting up Git

1 messages · Page 1 of 1 (latest)

plush stratus
#

@sage bear

sage bear
#

yeah

#

ima come back in 1 or less than a hour

plush stratus
#

Oh, if you have to go then just ping me here when you're done

#

Alright

sage bear
#

im sorry

#

bye

plush stratus
#

NP

grizzled pier
#

btw, unity already has a file sharing thing built in. git is also an option but the built in one requires less set up

plush stratus
#

We know

sage bear
#

im back

#

@here

sage bear
#

@plush stratus

#

sorry for ping

#

but i jus setup git

#

and i don't know what to do

plush stratus
#

Does it work when you open the command line and you type git?

sage bear
#

what command line

#

idk how to use it dude im sorry

plush stratus
#

windows key + r -> "cmd"

#

Then type git in the window

#

Oops, windows key, not control

sage bear
#

ok?

#

i typed in

plush stratus
#

So does this do anything at all?

sage bear
#

yea

#

alot

plush stratus
#

Prompt a list of options etc

#

Alright

#

Then you have it

#

Now Git is the program that works as the core of the source control

#

With git you can commit your changes

sage bear
#

uhhhh wtf?

#

how am i supposed to understand that alien language

#

btw here is what i gotstart a working area (see also: git help tutorial)
clone Clone a repository into a new directory
init Create an empty Git repository or reinitialize an existing one

work on the current change (see also: git help everyday)
add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
restore Restore working tree files
rm Remove files from the working tree and from the index

examine the history and state (see also: git help revisions)
bisect Use binary search to find the commit that introduced a bug
diff Show changes between commits, commit and working tree, etc
grep Print lines matching a pattern
log Show commit logs
show Show various types of objects
status Show the working tree status

grow, mark and tweak your common history
backfill Download missing objects in a partial clone
branch List, create, or delete branches
commit Record changes to the repository
merge Join two or more development histories together
rebase Reapply commits on top of another base tip
reset Reset current HEAD to the specified state
switch Switch branches
tag Create, list, delete or verify a tag object signed with GPG

collaborate (see also: git help workflows)
fetch Download objects and refs from another repository
pull Fetch from and integrate with another repository or a local branch
push Update remote refs along with associated objects

plush stratus
#

Don't worry about it

#

Next thing is to create a place where your project is hosted. Git will be able to grab the project from there.

#

There are two main places where you can do this, GitHub and Gitlab. I advice you use Github for now

sage bear
#

so just join a project

#

oh

plush stratus
#

You'll have to register on GitHub and make a new repo (project) in there

#

Note Github is fucking huge and literally everybody programs use either that or Gitlab to and extend

#

So even if you don't do this now you likely end up doing it in the future anyway

plush stratus
sage bear
#

ik but what you typed i did not understand

sage bear
#

and git will just take it?

plush stratus
#

If you have an existing project you can also use that

#

You just have to initialize git into it

#

Now you can learn all the commands you lister before, but you can also download one more application that makes it easier

sage bear
#

is it git gui

plush stratus
#

I personally use Github desktop, but there are also programs like Git Fork that work really well

#

Yes

sage bear
#

ok

plush stratus
#

But seriously, learn the commands anyway

#

Even though you use a GUI the terms still apply

#

A commit means you save the state of files under a message. Say you modify a file, you give it a pretty message explaining the change and you commit

#

When you push, you send your changes to GitHub, making it permanent unless you are willing to do a lot of work to revert it

#

A fetch means you get the current state from Github. For example when your friend made changes, it will now notify you of the number of changes

#

Lastly, pull means a fetch but you also synchronize your repository (project) with their changes

#

There's more, but these are the four basic ones

sage bear
#

look dude ik you are probably old like in your 20s or smth but im a begginer and just wanted to make a game with my friend... im sorry man like if you can just text me step-by-step guide then i do that if smth wrong ill ask

plush stratus
#

You can already initialize Git, by the way. You open your project in command line (cmd), and you have to call git init. It was also listed in the commands you shared before

plush stratus
#

Also, maybe you should just follow a Git tutorial

#

I can explain everything by text, but a video will always be better