#Setting up Git
1 messages · Page 1 of 1 (latest)
NP
btw, unity already has a file sharing thing built in. git is also an option but the built in one requires less set up
We know
Does it work when you open the command line and you type git?
windows key + r -> "cmd"
Then type git in the window
Oops, windows key, not control
So does this do anything at all?
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
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
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
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
Also how is this alien language? It's basic English?
ik but what you typed i did not understand
wdym like post my project in gitlab?
and git will just take it?
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
is it git gui
I personally use Github desktop, but there are also programs like Git Fork that work really well
Yes
ok
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
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
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
If something is confusing, you will have to explain what that would be
Also, maybe you should just follow a Git tutorial
I can explain everything by text, but a video will always be better