git和github有什么区别
来源:互联网 发布:孕36周b超标准数据 编辑:程序博客网 时间:2024/05/16 08:16
I Distributed Source Code Management System
I Open source, fast, easy to use and scalable (e.g., used by
Linux Kernel and many open source projects)
What is the difference between Git and GitHub?
GitHub, is a web-page on which you can publish your Git repositories and collaborate with other people.
Is Git saving every repository locally (in the user's machine) and in GitHub?
No, it's only local. You can decide to push (publish) some branches on GitHub.
Can you use Git without GitHub? If yes, what would be the benefit for using GitHub?
Yes, Git runs local if you don't use GitHub. An alternative to using GitHub could be running Git on files hosted on Dropbox, but GitHub is a more streamlined service as it was made especially for Git.
How does Git compare to a backup system such as Time Machine?
It's a different thing, Git lets you track changes and your development process. If you use Git with GitHub, it becomes effectively a backup. However usually you would not push all the time to GitHub, at which point you do not have a full backup if things go wrong. I use git in a folder that is synchronized with Dropbox.
Is this a manual process, in other words if you don't commit you won't have a new version of the changes made?
Yes, committing and pushing are both manual.
If are not collaborating and you are already using a backup system why would you use Git?
If you encounter an error between commits you can use the command
git diff
to see the differences between the current code and the last working commit, helping you to locate your error.You can also just go back to the last working commit.
If you want to try a change, but are not sure that it will work. You create a branch to test you code change. If it works fine, you merge it to the main branch. If it does not you just throw the branch away and go back to the main branch.
You did some debugging. Before you commit you always look at the changes from the last commit. You see your debug print statement that you forgot to delete.
Make sure you check gitimmersion.com.
- git和github有什么区别
- Git与GitHub有什么区别?
- GitHub vs GitLab:它们有什么区别?那么Git呢?
- git stash和git stash pop有什么区别
- --no-ff是什么意思?? 和 git merge --squash 有什么区别???
- 使用maven和使用git有什么区别?
- GitHub vs GitLab:它们有什么区别?
- GitHub vs GitLab:它们有什么区别?
- GitHub vs GitLab:它们有什么区别?
- git和github的区别
- Git和GitHub的区别
- Git和Github的区别
- git和github的区别
- /和../和~/有什么区别
- /和../和~/有什么区别?
- /和../和~/有什么区别
- Git和GitHub原理讲解及区别
- Git和Github之间的区别
- 【C#小知识】C#中一些易混淆概念总结(七)---------解析抽象类,抽象方法
- HDU 1075 What Are You Talking About
- Fragments
- Google面试总结
- mongodb分片经验谈
- git和github有什么区别
- 回归也是一种进步
- 单板计算机Beaglebone-Black首发上手体验
- 堆
- 中国板Beaglebone-Black之microSD卡启动系统
- 嵌入式平台选择:树莓派 or BeagleBone Black(BBB)
- user
- Java集群之session共享解决方案
- Word Search