Tuesday, July 10, 2012


Pushing and pulling is very closely related to remotes.  Remotes are versions of a project that are on the internet or hosted on some other network.  Pulling allows users to take the information or code written on the remotes and bring it to their local computers.  Pushing allows the user to add the changes that they have made to the program to the main branch that the program is hosted on.  Pushing occurs after you commit and when you want to share your changes. It pretty much just allows people to edit the project and on their own computer and then give it back to everyone, so they can then edit it from there. It's convenient for collaborative groups. 

To Pull:
To set up a local master branch and track the changes of the master branch use the command git clone in the terminal.
• To get all the data from the repository that the user doesn't have use the command $ git fetch [remote-name] in the terminal.
This will allow the the user references to all the branches from the remote which the user can inspect or merge at any time.  
• If a user wants to get any new work that has been pushed to the server since he/she has last cloned/fetched from it, use the command git fetch origin
This command will only pull the data to your local repository, it will not merge any of the new changes into your work.
• To get data from the originally cloned server and to have the new data merged into the code you are currently working on use the command git pull

To Push:
• To push your project upstream to share use the command git push [remote-name] [branch-name]
To push your master branch to your origin server use the command $ git push origin master (origin and master are the set defaults)
This will only work if you have write access and nobody has pushed their changes before you. If someone else has pushed their changes upstream before you, your push will be rejected.  You will have to pull their work down, incorporate it, and push again.  

Saturday, June 23, 2012

So, I pretty much lied about the title of this blog.  This definitely is NOT the cs blog of cs blogs, but perhaps in five weeks it will be the best one you will ever read.  Perhaps.  

This blog is being made for the Young Scholars Program at FSU.  It's a six week long program with classes and research projects and FUN.  I take three classes: Biochemistry of the Gene, Differential Equations, and most importantly, Intro to Computational Science.  My computational science teacher is my youngest teacher here at camp, by far.  However, it makes it cooler because he tries new methods like blogging.  My other two teachers are really cool too.  We do tons of labs in my Biochem class which is a ton more fun than lecture.  The Diff Eq class is kind of difficult because I haven't learned all the ways to differentiate, but I'm picking it up pretty quickly in class so it isn't a big deal.  Not too bad.  It's challenging in a good way.  

Other than my  classes I have an individual research project and I am working with Dr. Dennis.  He is a really chill guy and his research is some of the most interesting pieces of information I have ever learned.  It isn't published yet, so it probably isn't correct that I say what it is, but definitely watch for it in scientific journals.  You will be amazed.  

Besides all of that mind-stimulating time, there's a large span of time after returning to the dorm where childish things are done.  I have made 40 new friends, and I have even become really close with a number after just a week.  It's a cool experience.  We also went to Wakulla which had the coldest water of any body of water I have ever jumped into, but the two story jump was pretty sweet.  

That's it for now.  Perhaps I will write about computational science in my next post because this is THE cs blog of cs blogs, but I'm not sure.