- Branch: A "branch" is a line of development. The most recent commit on a branch is referred to as the tip of that branch. The tip of the branch is referenced by a branch head, which moves forward as additional development is done on the branch. A single Git repository can track an arbitrary number of branches, but your working tree is associated with just one of them (the "current" or "checked out" branch), and HEAD points to that branch.
- Clone: Clones a repository into a newly created directory, creates remote-tracking branches for each branch in the cloned repository (visible using git branch --remotes), and creates and checks out an initial branch that is forked from the cloned repository’s currently active branch. After the clone, a plain git fetch without arguments will update all the remote-tracking branches, and a git pull without arguments will in addition merge the remote master branch into the current master branch, if any.
- Commit: Record changes to the repository (command: git commit). By using git-add to incrementally "add" changes to the index before using the commit command. By using git-rm to remove files from the working tree and the index, again before using the commit command. Its also very helpful to use "git commit -am "commit message" " as it allows you to both add a mesage and automatically add changes to index that the "git add" will have done.
- Fetch: Download objects and refs from another repository. Git fetch can fetch from either a single named repository or URL, or from several repositories at once if is given and there is a remotes. entry in the configuration file. Otherwise, by not using a remote turns it by default to using origin.
- GIT: Is a software for tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows (thousands of parallel branches running on different systems). This needs to be installed to use anything that requires Git.
- Github: is a provider of Internet hosting for software development and version control using Git. It offers the distributed version control and source code management (SCM) functionality of Git, plus its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, continuous integration and wikis for every project.
- Merge: Join two or more development histories together. It Incorporates changes from the commits since the time the commits changed in the current branch you are trying to use. This command is used by git pull to incorporate changes from another repository and can be used by hand to merge changes from one branch into another. git merge [command]
- Merge Conflict: is an event that occurs when Git is unable to automatically resolve differences in code between two commits. Meaning when you are trying to merge a file it cannot merge automatically.
- Push: Update remote references along with associated objects. The git push command is used to upload local repository content to a remote repository. Pushing is how you transfer commits from your local repository to a remote repo.
- Pull: Fetch from and integrate with another repository or a local branch. The git pull command is used to fetch and download content from a remote repository and immediately update the local repository to match that content.
- Remote: A remote in Git is a common repository that all team members use to exchange their changes. In most cases, such a remote repository is stored on a code hosting service like GitHub or on an internal server. Basically is where stuff is stored online so your teamates can use it.
- Repository: A directory or storage space where your projects can live. A Git repository is the .git/ folder inside a project. This repository tracks all changes made to files in your project, building a history over time. Meaning, if you delete the .git/ folder, then you delete your project’s history (does not affect your remote is deleted and not commited in local). A remote repository is online and A local repository is on your machine.
- go to www.jetbrains.com/student/
- click on apply now under "Who can free Individual licenses for education"
- fill in the information depending on your status (remember that the email adress most be from your university) and after that click on "I have read and I accept the JetBrains Account Agreement"
- Verify your email
- click on the person icon in the between the magnifing glass and shopping cart.
- sign in with existing account with your email and password your submitted on step 3
- In the License tab click on the link by the name of "webstorm" under following products included
- click on the blue button by the name download
- click on the download button under your operating system of choise (Windows/ Mac/ Linux)
- click on run and save the file.
- find the file and click to set up webstorm (have everything recomended) (more instructions later)
- Go to https://git-scm.com/downloads
- Click on Windows and save the file for the set up
- Find the file and double click it
- Choose the place where you want to install git and its utilities (make sure git bash and GUI is checked)
- You can leave vim as the default editior or choose your own(must know what you are doing)
- Choose the recomended options and just keep clicking next untill starts installing
- After installing just launch it
- After launching it you canchange your global user name and email for your GitHub Account to make it easier when getting your repository (commands: git config --global user.name "Username" , git config --global user.email [email protected])
- Go to https://github.com
- Click on sign Up on the top right
- Fill your username, email and password.
- Verify your account, and create account.
- Select plan (free)
- Fill why you are using GitHub(you can skip the this part if you want) and complete the set up
- Verify email
- Create a new repository by filling out the name(this is IT117-002) and then just click create repository
- In the Webstorm App leave click on "New project" button inthe projects tab
- In "Empty Project" choose the location for your webstorm project and click create
- On the top click on VCS > Enable Version Control Integration
- Choose GIt and click on OK
- Ctrl+Alt+S for system preferences of Webstorm
- click on version Control tab and on Git and click on the "test" button on "Path to Git executable"
- Now you can test it by right clickin on the folder right under project on the left side
- choose New > HTML file.
- You can change the title if you want but rember to add a Hello World in between the 2 paragraphs tags
- Clik on "Git" on the top between "Tools" and "Window"
- Click Connect
- Choose files to commit (just the HTML file)
- make a commit Message and click the commit Button
- Fill your GitHub Information the name and Email
- To add to online Git Repository click Git > GitHub> Share Project on GitHUb
- Fill in the info from the GitHub (repository Name, share by > add Account)
- Authorize in Github on jetBrains pop up and sign in with github account
- Click on share back on Webstorm
- click on push under "Git" to push to remote repository
- Go to GitHub.com and go to your repository, then to settings (settings might be on "..." if browser is not fullscreen)
- change source to None and save
- Scrolls down to "source" right above the danger Zone if background not blue change none back to master
- wait or keep reloading the page until it says your site is published above source
- click on the link provided by the published, you should see a hello world text on your screen
- Congratulations you are done, now any commits on the future should be published here
- You can Also click on the browser in the html file right side to see your changes (these are not the github ones, remember to commit if you want to see it on gitHUB)