• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Repository help

Status
Not open for further replies.

DndTheTroll

Respected Member
Hello guys, I've made a repository with a friend of mine and we were managing it from PC but i forgot how to do it..

if someone can tell me how to manage my own repository from my pc would be great + rep
 

Tommy

Founder
Hello guys, I've made a repository with a friend of mine and we were managing it from PC but i forgot how to do it..

if someone can tell me how to manage my own repository from my pc would be great + rep

I use git bash to clone, commit, pull, push, etc. What exactly do you need help on?
 

Tommy

Founder
when I click on Git bash it show me cmd..

Yes. Commands you will use are:

COMMAND:

[Clones (downloads) a specific repo]
git clone "repo url"

EXAMPLE:
git clone https://github.com/ARepo

---------------------------------------------------

COMMAND:

[Adds a specific modified file to the list for committing]
git add "path/to/file"

EXAMPLE:
git add "scripts/server/src/MyScript.cpp"

---------------------------------------------------
COMMAND:

[Adds all modified files to the list for committing]
git add --all

---------------------------------------------------
COMMAND:

[Shows all modified files as well as their paths]
git status

---------------------------------------------------
COMMAND:

[Shows all modified files without paths (file name and extension only)]
git status -s

---------------------------------------------------
COMMAND:

[Adds your changes to a commit]
git commit
[Adds your changes to a commit with your messages]
git commit -m "MAIN TITLE" -m "UPDATED: THIS" -m "UPDATED: THAT" -m "UPDATED: EVERYTHING"

---------------------------------------------------
COMMAND:

[Pushes your commit to your repo publicly]
git push


When you're ready to commit, do it in the following order:

// GIT ADD DEPENDS ON WHAT FILES YOU ACTUALLY WANT TO ADD TO THE COMMIT -- I'm doing "ALL" for example
git add --all
git commit -m "UPDATED: MY PROJECT" -m "ADDED: A Toad"
git push

If you're new to it, TortoiseGit is a useful tool.

And for noobs like you. :surprised:
 
Last edited:

Rochet2

Moderator / Eluna Dev
If you have the shell extension so you can open the console where you want with rightclicking the folder you want to open git bash to, git bash is awesome.
The GUI stuff usually bugs or doesnt allow you to insert all git commands available.
I think most use git bash, its not like the GUI gives you much if anything new / more.
 
Status
Not open for further replies.
Top