How to start with MSysgit on local machine?
- Download and install Git for Windows
- Create source code directory for your git app
- Right click the directory at your favorite file browser. Menu should contain item "Git init here". It initializes chosen directory to be git-abled :-)
Commit data to local Git repository
Now, you can add any file, your first source code, to created directory. If you are prepared to commit any changes to your local git repository, follow next instructions.
- Right-click the directory.
- Choose "Git Add All file now". The command adds all files to git control. No commit so far, lets say that it's similar to subversion's "Add file"
- Right-click again, now choose "Git gui" item to start graphical GIT client.
- You should see your changes prepared to commit to local git storage. You can write your comment and commit changes.
Push data to remote server - github.com
As I said, your commit so far affected only local repository. If you decided to share (or backup) your sources to real server, thats another story :-)
To do that, I have assigned to free-for-public-projects github.com hosting service. It seems really good, very nice web UI. After your registration, you obviously need to create any new repository, just follow website's instructions.
How to push data?
- First of all, you need to create any SSH public key. Thats simple way how to trust you. MSysGit can generate key for you - Help -> Show SSH Key -> Generate Key.
- Insert the key to your profile at github.com. Click at "Account settings", choose "SSH Public Keys". Now, your key is synchronized.
- Lets change focus back to MSysGit GUI to upload repository to server.
- Select "Remote" item at menu, choose "Add remote". Fill the location you have already get when you created repository. You can find the url placed at repository overview page. Url has following pattern: git@github.com:{your-user-name/{project-name}.git. After successful filling, the remote github.com repository is paired with your local git repository.
- Now, you are able to push the data to remote server. Choose "Remote" -> "Push" and confirm the dialog.
I'm really interested in how I will like the work with Git and right now I really don't understand how potential conflicts are solved, I'll probable see later :-)
1 comments:
The blog you shared is very good. I expect more information from you like this blog. Thankyou.
Python Training in bangalore
Python Course in Bangalore
Angularjs course Bangalore
Angularjs Training in Bangalore
Web Designing Course in bangalore
Web Development courses in bangalore
Salesforce Course in Bangalore
salesforce training in bangalore
Big Data Training in Bangalore
Hadoop Training in Bangalore
Post a Comment