Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2015-12-05 01:37:03

Fotomac
Member
Registered: 2015-10-25
Post 101/297

Github images

Now that I'm on Github, how do you add or otherwise alter images?

Offline

#2 2015-12-05 01:42:39

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,196/3,503

Re: Github images

The same way you do anything else. Edit your local copy and push the changes.

Offline

#3 2015-12-05 01:44:16

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,197/3,503

Re: Github images

git add -A

git commit -m "commit name here"

git push


That would add any uncomitted changes, whether it's new pics or files you've added, existing files you've edited, or existing files you deleted, to a new commit. Then it would push the new commit.

Last edited by Mateo (2015-12-05 01:44:53)

Offline

#4 2015-12-05 01:46:04

Fotomac
Member
Registered: 2015-10-25
Post 102/297

Re: Github images

git add -A

git commit -m "commit name here"

git push

Where specifically do I input all that?

Offline

#5 2015-12-05 01:47:29

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,198/3,503

Re: Github images

in the terminal, the same as you would for running "make".


open the terminal

cd YourHackFolder

git add -A

git commit -m "commit name here"

git push

[enter your github username and password when prompted]

Offline

#6 2015-12-05 01:49:53

Fotomac
Member
Registered: 2015-10-25
Post 103/297

Re: Github images

For "commit name here", do I input the image name? And where do I input the name of the subfolder(s) in which the image is contained?

Offline

#7 2015-12-05 01:53:27

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,199/3,503

Re: Github images

By using git add -A like that, you don't have to manually tell it where anything is. the -A switch means "all uncomitted changes" so the name would just be a short description of what you did. Such as:

git add -A

git commit -m "Add Houndour and Houndoom"

git push


The names of all these commits were what I typed for "commit name here" when I made them, for example.

Last edited by Mateo (2015-12-05 01:54:36)

Offline

#8 2015-12-05 01:58:48

Fotomac
Member
Registered: 2015-10-25
Post 104/297

Re: Github images

Pokemon Logo again, for example.

Offline

#9 2015-12-05 02:02:10

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,200/3,503

Re: Github images

yep. Just a short name to let you and others know what you were doing in that commit.

Offline

#10 2015-12-05 02:03:14

Fotomac
Member
Registered: 2015-10-25
Post 105/297

Re: Github images

I got to 'git commit -m "Unify"' and got the following error:

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got '[user]@[domain].(none)')

Offline

#11 2015-12-05 02:07:38

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,201/3,503

Re: Github images

That just means you haven't setup your profile in cygwin. So just do what it told you to do.

git config --global user.email "fotomac@gmail.com"
git config -- global user.email "fotomac"

(or whatever your actual email and username are)

Offline

#12 2015-12-05 02:11:09

Fotomac
Member
Registered: 2015-10-25
Post 106/297

Re: Github images

At 'git push', I got this error:

$ git push
warning: push.default is unset; its implicit value has changed in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the traditional behavior, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.

Since Git 2.0, Git defaults to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

fatal: remote error:
  You can't push to git://github.com/iimarckus/pokered.git
  Use https://github.com/iimarckus/pokered.git

On a side note: for some reason, it said iimarckus/pokered.git instead of Fotomac/Pokemon-Tri-Color-Nostalgia-Series.

Offline

#13 2015-12-05 02:24:55

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,202/3,503

Re: Github images

Ok, that means that it is still trying to push to iimarckus master, since that is where you originally pulled it from. Clearly, you don't have permission to do that, and it isn't going to let you. But no worries, we can fix this.

If you type

git remote -v

It should show that all you have is "origin" which has the iimarckus url.

So you will want to type:

git remote rm origin

git remote add origin https://github.com/Fotomac/Pokemon-Tri-Color-Nostalgia-Series

git remote add iimarckus https://github.com/pret/pokered

Then you can try push again. It might still yell at you, so if it does, run

git config --global push.default simple

then run:

git push --set-upstream origin master

That will make sure it knows to try and push changes to "origin" which is the url for your repository.

Then you should be able to do the steps I originally mentioned above. I think I covered everything you'd need for getting it properly linked to your account, and keeping iimarckus as an option so you can pull in updates from the main pokered in the future if you want to. This setup part I just tried to explain won't be an everyday thing or anything, once you get it properly setup this first time, you'll just do what I told you at first and it will be simple. Hopefully I didn't skip anything in this (also, Danny had to walk me through that when I first linked Red++ to github so I totally understand this part being confusing).

Last edited by Mateo (2015-12-05 02:26:43)

Offline

#14 2015-12-05 02:27:52

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,203/3,503

Re: Github images

Hopefully that will get it sorted out. I've got to disappear for a while, but if it still gives you trouble, I'll try to help out (or maybe someone else will be around while I'm gone who could help, if you need it). Good luck!

Offline

#15 2015-12-05 02:33:52

Fotomac
Member
Registered: 2015-10-25
Post 107/297

Re: Github images

I got it now.

Offline

Board footer

Powered by FluxBB