GitHub

Git-Specific Commands

Since Git was designed with a big project like Linux in mind, there are a lot of Git commands. However, to use the basics of Git, you’ll only need to know a few terms. They all begin the same way, with the word “git.”

git init: Initializes a new Git repository. Until you run this command inside a repository or directory, it’s just a regular folder. Only after you input this does it accept further Git commands.

git config: Short for “configure,” this is most useful when you’re setting up Git for the first time.

git help: Forgot a command? Type this into the command line to bring up the 21 most common git commands. You can also be more specific and type “git help init” or another term to figure out how to use and configure a specific git command.

git status: Check the status of your repository. See which files are inside it, which changes still need to be committed, and which branch of the repository you’re currently working on.

git add: This does not add new files to your repository. Instead, it brings new files to Git’s attention. After you add files, they’re included in Git’s “snapshots” of the repository.

git commit: Git’s most important command. After you make any sort of change, you input this in order to take a “snapshot” of the repository. Usually it goes git commit -m “Message here.” The -m indicates that the following section of the command should be read as a message.

git branch: Working with multiple collaborators and want to make changes on your own? This command will let you build a new branch, or timeline of commits, of changes and file additions that are completely your own. Your title goes after the command. If you wanted a new branch called “cats,” you’d type git branch cats.

git checkout: Literally allows you to “check out” a repository that you are not currently inside. This is a navigational command that lets you move to the repository you want to check. You can use this command as git checkout master to look at the master branch, or git checkout cats to look at another branch.

git merge: When you’re done working on a branch, you can merge your changes back to the master branch, which is visible to all collaborators. git merge cats would take all the changes you made to the “cats” branch and add them to the master.

git push: If you’re working on your local computer, and want your commits to be visible online on GitHub as well, you “push” the changes up to GitHub with this command.

git pull: If you’re working on your local computer and want the most up-to-date version of your repository to work with, you “pull” the changes down from GitHub with this command.

 

Advertisements

New Linux Desktop

Its 1:00 am at night and i have to reach office tomorrow at 6:30 am but i playing around with my Linux box from past couple of hours and was able to completely modify it . Will update this post with a newer screenshots and how tos 🙂

This is how now my desktop looks like …

my linux box 31 jan

i need to work on this project(s) of mine but i ended up doing this … :p i need to be more focused.

#Idea: Fastblogging in Journaling

20 days before while browsing Reddit and thinking of Journaling my life and time here at Hyderabad, a fantastic idea came into my mind , at least it is fantastic to me .So the problem with WordPress is that if you are a novice and want to journal what you did today and keep track of your everyday life .It becomes very tedious as we need to type a lot and that too correctly  keeping in mind the correct subject verb agreement, tense and Grammar . So here comes my BIG Plan. So the idea is making a default template for entering the daily details

  • The user Logs in the app (web or Mobile).
  • Create a FORM or select a default form template for his journaling. *(Sample form)Screenshot from 2014-01-26 18:14:59
  • Enters the form and other details Daily.
  • Now the data is saved in the user’s account.
  • Now the server will parse the input and turn the inputs into a blog post .
  • Here is a sample product Screen Shot.Screenshot from 2014-01-26 21:07:57

Since there is not that good literary talent in many (practical 99%) of the people this web app will come handy to them. Hoping to see it in development mode soon .. cheerio .