These are chat archives for MontCode/GeneralChat

23rd
Jul 2016
Lily Romano
@Lilyheart
Jul 23 2016 00:00
I don't have your setup, so I can't screenshot where it would be. What part is confusing? Top level folder? or the command line?
does this tutorial explain what i need to do?
Lily Romano
@Lilyheart
Jul 23 2016 00:01
On your computer, not a URL
No, because that's to create a new project. You already have one.
If you don't want me to walk you through it, let me know. I don't mind helping.
Victor
@VictorHall
Jul 23 2016 00:04
i dont mind. Im just confused on step 2 thats all
Lily Romano
@Lilyheart
Jul 23 2016 00:04
What part is confusing? Top level folder? or the command line?
Victor
@VictorHall
Jul 23 2016 00:05
top level folder
Lily Romano
@Lilyheart
Jul 23 2016 00:06
So, I have my Userfolder (Called Lilyheart). In that folder I have a folder called GitHub. In that folder I have a folder that holds my project called guess-the-rgb. The folder guess-the-rgb is my top level folder for that project.
Any higher and it's not project specific. Any lower and I'll miss files. Everything is in that guess-the-rgb folder. That makes it the top level of the project.
Victor
@VictorHall
Jul 23 2016 00:07
ok.
Lily Romano
@Lilyheart
Jul 23 2016 00:07
so I would type on the command line cd /GitHub/guess-the-rgb to get into that folder assuming I start out in my Lilyheart folder.
Victor
@VictorHall
Jul 23 2016 00:07
I have all my css js and html in one file for now.
i guess that really doesn't matter
Lily Romano
@Lilyheart
Jul 23 2016 00:08
my guess-the-rgb only has three files as well.
xD
well, it has the README and LICENSE but those are only important if you want to keep the repo around and you can add it later.
Victor
@VictorHall
Jul 23 2016 00:09
do i copy and past the url to clone first ?
Lily Romano
@Lilyheart
Jul 23 2016 00:09
first you have to git init
You have nothing to clone, cloning takes something on the GitHub server and puts it local.
Victor
@VictorHall
Jul 23 2016 00:10
this is all in git shell right ?
Lily Romano
@Lilyheart
Jul 23 2016 00:10
Yes
Victor
@VictorHall
Jul 23 2016 00:10
dont i have to make the repo that i just created local?
Lily Romano
@Lilyheart
Jul 23 2016 00:10
blob
you can't until after you make your local a git repo
You are taking your local and putting it remote. Cloning takes a remote and makes it local.
lemme know after you git init
Victor
@VictorHall
Jul 23 2016 00:11
ahhhhh!
no were getting somewhere .
that makes sense
Lily Romano
@Lilyheart
Jul 23 2016 00:11
The repo you just made on GitHub is totally empty. We have to shove your local code into it.
Victor
@VictorHall
Jul 23 2016 00:12
okay so i have a git repo already
Lily Romano
@Lilyheart
Jul 23 2016 00:12
You init'd?
if you type ls -la you see a .git folder?
What do you mean you have a repo already?
Victor
@VictorHall
Jul 23 2016 00:14
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:14
That isn't the top level folder of your project. You have several projects in that folder.
Victor
@VictorHall
Jul 23 2016 00:15
should i even be in that folder ?
Lily Romano
@Lilyheart
Jul 23 2016 00:15
Not to initialize a project.
Victor
@VictorHall
Jul 23 2016 00:15
should i create a seperate folder for this project?
and then do git init?
Lily Romano
@Lilyheart
Jul 23 2016 00:16
If you want it on GitHub, you need it in a folder of it's own.
Where is the project right now?
Victor
@VictorHall
Jul 23 2016 00:18
in a folder with a bunch of notpad documents
notepad*
i use those to keep a written discription of my project
Lily Romano
@Lilyheart
Jul 23 2016 00:18
If you don't want those documents getting in your way (you don't have to add them to the repo, but it can get annoying working around them all the time) you will need the project in it's own folder.
Victor
@VictorHall
Jul 23 2016 00:19
okay...one sec
Lily Romano
@Lilyheart
Jul 23 2016 00:19
If you want them on your repo (if your repo is public, anyone will be able to see them, if your repo is private, then it doesn't matter!)
Victor
@VictorHall
Jul 23 2016 00:20
i make everything public
so in your screen shot... in github a repo inside your documents folder
?
Lily Romano
@Lilyheart
Jul 23 2016 00:21
The folder can be anywhere, it doesn't need to be in GitHub.
Victor
@VictorHall
Jul 23 2016 00:21
ok
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:22
It's nice to keep it all in /GitHub/ just for organization, but you can initialize any folder to be a repo
Victor
@VictorHall
Jul 23 2016 00:22
will i be able to move it later?
Lily Romano
@Lilyheart
Jul 23 2016 00:23
Now you have a local git (git is different then GitHub). The next step is connecting your git repo to your GitHub repo git remote add origin git@github.com:VictorHall/EnviioReport.git
Sure!
Victor
@VictorHall
Jul 23 2016 00:24
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:24
You just need to move the entire gh-pages folder including all the files inside it. You can rename the folder if you wish to match your repo name once you decide on one!
if you type in git remote -v v is for verbose, what does it say?
Victor
@VictorHall
Jul 23 2016 00:25
i have not added my project into the gh-pages folder yet though
when will i need too?
Lily Romano
@Lilyheart
Jul 23 2016 00:25
before you git push
if you type in git remote -v v is for verbose, what does it say?
Victor
@VictorHall
Jul 23 2016 00:27
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:27
perfect! Now your local git repo is connected to your GitHub repo.
Stick the files you want into that folder.
Victor
@VictorHall
Jul 23 2016 00:27
YAY!
ok one sec
done
Lily Romano
@Lilyheart
Jul 23 2016 00:29
Now do the git add and git commit to put those files into the repo
Victor
@VictorHall
Jul 23 2016 00:31
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:31
Do you only have the html file? Where is the js and css?
Victor
@VictorHall
Jul 23 2016 00:32
its all inside the html file lol yes im a newbie
Lily Romano
@Lilyheart
Jul 23 2016 00:32
ooooooh okie!
Victor
@VictorHall
Jul 23 2016 00:32
ill change it later i guess. will it be a hard fix to separate them ?
Lily Romano
@Lilyheart
Jul 23 2016 00:33
you have a .html.html on the end of the file. If you want to remove that second .html type mv enviioReport.html.html enviioReport.html (mv OldFileName NewFileName)
Victor
@VictorHall
Jul 23 2016 00:34
ok i renamed it before i moved it and added another .html assuming the there wasn't an extension already
Lily Romano
@Lilyheart
Jul 23 2016 00:34
windows likes to hide them.
Victor
@VictorHall
Jul 23 2016 00:34
does that correct the file name also?
or file extension in my folder?
Lily Romano
@Lilyheart
Jul 23 2016 00:35
It's just doin' a file rename.
Victor
@VictorHall
Jul 23 2016 00:35
oh okay
gotcha
Lily Romano
@Lilyheart
Jul 23 2016 00:36
If it doesn't work, that's fine. Windows is a pain to setup
Victor
@VictorHall
Jul 23 2016 00:37
oh sorry it does i forgot to show you
Lily Romano
@Lilyheart
Jul 23 2016 00:37
You have to actually git add the file you want to add. So in your case git add FILENAMEHERE
Victor
@VictorHall
Jul 23 2016 00:37
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:37
Always read your error messages.
xD I had a typo in my filename as well. Sorry, You have an envioo now. That's my bad. You must have copied my text before I fixed it. mv enviooReport.html enviioReport.html
Victor
@VictorHall
Jul 23 2016 00:38
lol i kind of liked the new name envioooo
Lily Romano
@Lilyheart
Jul 23 2016 00:39
If you are changing the name, then you want to git add enviioReport.html
Victor
@VictorHall
Jul 23 2016 00:39
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:39
you can be lazy and if you type git add en and then press the tab key, it will autocomplete if there is only one possible match.
Victor
@VictorHall
Jul 23 2016 00:39
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:40
To commit, type git commit -m "Initial Commit" (you can change the message if you want)
Victor
@VictorHall
Jul 23 2016 00:41
blob
no need to change it
Lily Romano
@Lilyheart
Jul 23 2016 00:41
woot! Now your file is commited (locally)...
Victor
@VictorHall
Jul 23 2016 00:41
woooot!
Lily Romano
@Lilyheart
Jul 23 2016 00:42
git push -u origin master to push it to GitHub
Victor
@VictorHall
Jul 23 2016 00:42
the rocket is about to launch!
Lily Romano
@Lilyheart
Jul 23 2016 00:42
git branches are the next level of complication.
You are currently on the master branch. Your shell is nice because it tells you what branch you are on (that is the aqua text).
branches are like snapshots of code.
Victor
@VictorHall
Jul 23 2016 00:43
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:44
yay! you should be able to see it online now!
Victor
@VictorHall
Jul 23 2016 00:44
where do i go?
Lily Romano
@Lilyheart
Jul 23 2016 00:44
https://github.com/VictorHall/EnviioReport but the webpage isn't active yet. we need to deal with branches first.
You are currently on the master branch. Your shell is nice because it tells you what branch you are on (that is the aqua text).
branches are like snapshots of code.
github puts anything on the branch named gh-pages online.
to make a gh-pages branch, type git checkout -b gh-pages
Victor
@VictorHall
Jul 23 2016 00:47
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:47
woot! Now you have a local branch. We need to make it on GitHub as well. git push --set-upstream origin gh-pages
that pushes the code and sets the branch name on github at the same time.
Victor
@VictorHall
Jul 23 2016 00:48
wow! this is alot lol
one last thing we can do to make it easier for you.
to make gh-pages your default and only branch (only recommend this for being lazy or just doing a simple site. At some point you will want to learn to use and abuse branches).
On this page https://github.com/VictorHall/EnviioReport/branches click change default branch
blob
Victor
@VictorHall
Jul 23 2016 00:52
blob
my page froze when i tried to upload this snapshot
ok im back
Lily Romano
@Lilyheart
Jul 23 2016 00:53
welcome back. Did you see your new site?
see my four chat posts before your last screenshot
Victor
@VictorHall
Jul 23 2016 00:54
blob
this is what my page looks like
yes it works too.
Lily Romano
@Lilyheart
Jul 23 2016 00:54
the drop down above that. Switch default branch
blob
(two sections on that page. Default, and protect. You want default.)
Victor
@VictorHall
Jul 23 2016 00:56
geolocate only works over https in chrome now .
blob
so ill click updaye
update now
Lily Romano
@Lilyheart
Jul 23 2016 00:57
blob
Victor
@VictorHall
Jul 23 2016 00:57
blob
Lily Romano
@Lilyheart
Jul 23 2016 00:57
yeah, the chrome change is annoying. The next FreeCodeCamp challenge is to make a weather page on codepen. Codepen doesn't do HTTPS. /lesigh
awesome. Back on this page, https://github.com/VictorHall/EnviioReport/branches you can delete the master branch.
Now, every change you add commit and push will showup on that webpage.
Victor
@VictorHall
Jul 23 2016 00:59
so if i change something just do add commit and push and everything will show up right ?
Lily Romano
@Lilyheart
Jul 23 2016 00:59
I recommend this course for beginners to learn git/GitHub. It's very new user friendly and thorough. https://www.udacity.com/course/how-to-use-git-and-github--ud775
just remember when you add, you need to tell it what file(s) to add.
Commit will need a commit message.
Victor
@VictorHall
Jul 23 2016 01:00
yea i did something similar for a weather app but i came up with something to spin off of that
Lily Romano
@Lilyheart
Jul 23 2016 01:00
you already have push set up, so nothing weird there.
Victor
@VictorHall
Jul 23 2016 01:01
ok well thanks so much lily. you made it much easier than it seemed at first.
Lily Romano
@Lilyheart
Jul 23 2016 01:01
Soon you will be able to do ALL of those steps in about 2 minutes.
Victor
@VictorHall
Jul 23 2016 01:02
i know. though it is much easier to press F5 to see your changes lol darn you chrome update!
but this is much cooler
i have an actual site now
so this is a live site right?
Lily Romano
@Lilyheart
Jul 23 2016 01:03
yup! I can see it here.
Victor
@VictorHall
Jul 23 2016 01:04
nice. okay well thanks.
Eric Phy
@SimplyPhy
Jul 23 2016 15:07
comments and readme; then done! :D
Lily Romano
@Lilyheart
Jul 23 2016 15:11
:thumbsup:
Victor
@VictorHall
Jul 23 2016 23:35
hey @Lilyheart I tried pushing small changes to the site we made yesterday and this it does seem to show any changes
blob
*doesn't