Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [16:24:13] <Lathanael> open the terminal and enter
- [16:24:19] <Lathanael> git init
- [16:25:37] <@SatanicSanta> back
- [16:26:01] <@SatanicSanta> Initialized empty git repository in Users/my name/Desktop/.git
- [16:26:06] <@SatanicSanta> This feels incorrect :P
- [16:26:17] <Lathanael> well you should navigate to the folder :P
- [16:26:22] <@SatanicSanta> Yes
- [16:26:23] <@SatanicSanta> That's a good idea
- [16:27:01] <@SatanicSanta> Wait, which level?
- [16:27:16] <Lathanael> and you may want to put that readme and .gitignore into the "BigTrees" folder
- [16:27:27] <@SatanicSanta> http://puu.sh/bhCBR/2c98c71489.png
- [16:27:29] <Lathanael> i have no idea how its called on you system :P
- [16:27:49] <@SatanicSanta> navigate to which part? E-Flux or forge-src?
- [16:27:54] <Lathanael> then it should be the forge
- [16:28:10] <Lathanael> as i guess you want the stuff in there tracked
- [16:28:25] <@SatanicSanta> yeh
- [16:28:30] <@SatanicSanta> did that
- [16:28:53] <Lathanael> copy the Readme and .gitignore from the hary spice folder
- [16:29:01] <Lathanael> into the forge folder
- [16:29:29] <Lathanael> and get rid of that hairy stuff afterwards
- [16:29:43] <@SatanicSanta> alright
- [16:30:06] <Lathanael> now do the git init again (and make sure you are in the right folder :P)
- [16:30:13] <@SatanicSanta> the forge src?
- [16:30:22] <Lathanael> you should get a .git folder in the forge folder then
- [16:30:33] <@SatanicSanta> I already have one :P
- [16:30:42] <Lathanael> wtf?!
- [16:30:50] <Lathanael> was it in the hairy folder?
- [16:30:52] <@SatanicSanta> from [16:24:13] <Lathanael> open the terminal and enter [16:24:19] <Lathanael> git init
- [16:30:54] <@SatanicSanta> no it wasnt
- [16:31:27] <Lathanael> ahh so you already intitialized the folder in the command prompt?
- [16:31:32] <@SatanicSanta> yes
- [16:31:52] <Lathanael> what happens if you execute git status
- [16:31:53] <Lathanael> ?
- [16:32:02] <@SatanicSanta> in the command prompt?
- [16:32:15] <Lathanael> yes
- [16:33:25] <@SatanicSanta> http://puu.sh/bhD2v/a74d335e3d.png
- [16:33:26] <@SatanicSanta> that
- [16:33:45] <Lathanael> that does look correct
- [16:34:06] <Lathanael> now you should add everyhing you do NOT want to be tracked in the gitignore file
- [16:34:20] <Lathanael> http://puu.sh/bhD2R/e11a1c6d84.gitignore
- [16:34:23] <@SatanicSanta> Okay. I feel like that src/ directory should be tracke
- [16:34:27] <Lathanael> that would be mine
- [16:34:38] <Lathanael> as an example
- [16:34:41] <@SatanicSanta> And yeh, Striking already did the gitignore
- [16:34:49] <@SatanicSanta> https://github.com/satanicsanta/hairy-spice/blob/master/.gitignore
- [16:35:16] <Lathanael> you also don't want that README.txt i guess as its from forge
- [16:35:42] <Lathanael> the .settings should also not be put on a repo
- [16:35:58] <@SatanicSanta> added both of those
- [16:36:27] <Lathanael> whats the out folder used for?
- [16:36:31] <@SatanicSanta> idk
- [16:36:40] <@SatanicSanta> oh
- [16:36:46] <@SatanicSanta> It appears to be build-related
- [16:36:50] <@SatanicSanta> So I don't want it there
- [16:36:56] <Lathanael> probably
- [16:37:11] <@SatanicSanta> Otherwise there's gonna be obfuscated and deobfuscated code on the repo :P
- [16:37:46] <Lathanael> after you added those these folders/files should not be present if you do "git status" again
- [16:38:05] <Lathanael> and apparently i can not type.....
- [16:38:19] <@SatanicSanta> Yeah
- [16:38:27] <@SatanicSanta> There's now the README.md, .gitignore, build.gradle, and src
- [16:38:31] <@SatanicSanta> Perfect
- [16:38:37] <Lathanael> no do
- [16:38:40] <Lathanael> git add .
- [16:38:54] <@SatanicSanta> With the period?
- [16:38:57] <Lathanael> yes
- [16:39:03] <Lathanael> the period is important here
- [16:39:08] <@SatanicSanta> What does this do?
- [16:39:19] <Lathanael> as it indicates to git to look for all new or changed files
- [16:39:36] <Lathanael> and stage then to be commited
- [16:39:52] <Lathanael> *them
- [16:40:05] <Lathanael> once you've got that
- [16:40:26] <Lathanael> git commit -m 'first commit'
- [16:40:36] <Lathanael> aeh stopp
- [16:40:45] <@SatanicSanta> wat
- [16:40:47] <@SatanicSanta> that last part
- [16:40:57] <@SatanicSanta> not the git commit stuff
- [16:41:03] <@SatanicSanta> but whatever you said after that :P
- [16:41:15] <Lathanael> alcohol and thinking isn't working well...
- [16:41:19] <@SatanicSanta> Ah yes
- [16:41:20] <Lathanael> together
- [16:41:28] <Lathanael> but you can ignore the stop
- [16:41:34] <Lathanael> the commit command should work
- [16:41:39] <@SatanicSanta> It says it does
- [16:41:43] <Lathanael> was getting ahead of myself
- [16:41:51] <@SatanicSanta> But it isn't present in the actual repo :/
- [16:42:19] <Lathanael> thats because we haven't pushed it yet
- [16:42:23] <@SatanicSanta> o
- [16:42:28] <Lathanael> next step is to add the repo
- [16:42:51] <Lathanael> to do that enter:
- [16:42:55] <Lathanael> git remote add origin https://github.com/satanicsanta/hairy-spice.git
- [16:43:19] <@SatanicSanta> done
- [16:44:12] <Lathanael> now the final step
- [16:44:25] <Lathanael> git push origin master
- [16:44:50] <@SatanicSanta> !topicappend For my own sake: git status, git commit -m 'summary thing', git push origin master
- [16:44:50] Spock [Logic@enterprise.services.esper.net] has changed topic to "Channel for Energetic Flux crap | https://github.com/satanicsanta/hairy-spice | For my own sake: git status, git commit -m 'summary thing', git push origin master"
- [16:45:27] <@SatanicSanta> defack
- [16:45:35] <Lathanael> replace the git status with git add -A
- [16:45:59] <@SatanicSanta> !topic Channel for Energetic Flux crap | https://github.com/satanicsanta/hairy-spice | For my own sake: git add -A, git commit -m 'summary thing', git push origin master
- [16:45:59] Spock [Logic@enterprise.services.esper.net] has changed topic to "Channel for Energetic Flux crap | https://github.com/satanicsanta/hairy-spice | For my own sake: git add -A, git commit -m 'summary thing', git push origin master"
- [16:46:25] <@SatanicSanta> Lathanael: http://puu.sh/bhDVO/8c708ece81.png
- [16:47:06] <Lathanael> for this time only do:
- [16:47:17] <Lathanael> git push origin master --force
- [16:47:48] <@SatanicSanta> thank you lath :D
- [16:48:09] SatanicSanta saves this on pastebin for future use when he inevitably forgets all of this
- [16:48:26] <Lathanael> but keep in mind to not use the force option when you are not 100% sure it'll work
- [16:48:42] <Lathanael> cause it rewrites the commit tree as you can see on your repo now
- [16:48:57] <Lathanael> thus work others have done might get lost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement