![]() ![]() This is the general workflow for contributing code on GitHub: From interface Fork the repo you want to contribute to -> Clone it to your harddrive -> Make changes and Commit -> Push changes to your repo -> From interface create a “Pull Request”. GitHub is the single largest host for Git repositories, and many MX applications are housed there. You merge branches together with git merge branchname_to_be_merged. ![]() Go here to navigate and download just your version of interest: Ex: the OP's v2.6.32.2 is on this page here. When you switch branches, Git replaces your working directory with the snapshot of the latest commit on that branch so you don’t have to have multiple directories for multiple branches. Option 1: manually download just the kernel version tar file of interest. You can create a branch with git branch branchname, switch into that context with git checkout branchname, record commit snapshots while in that context, then can switch back and forth easily. You might want to create branches for multiple purposes: experimenting, create different branches for different features, keep copies of stable versions in different branches, branches for patches, etc. Once you reach a point where you are satisfied with the changes you can commit the changes with:Ĭommon options: -a - automatically stage all tracked, modified files before the commit (You still need to run git add to start tracking new files) -m - adds a commit message Branchingīranching is probably the most important feature of Git. (for all the files in the current directory and its sub-directories) Files are not tracked automatically by Git, to add files to “staging” area you need to use the add command: Once you cloned or initialized a Git repository you can start to edit file. To push changes (if you have rights to publish on the remote repo) you can use this command:Ģ.Another way to set a repository is to initializes a directory as a Git repository: To re-sync (update) the local Git repo with the remote repo you can run this command (while in linux-2.6 directory): ![]() The git repository will be created in linux, you can cd to that directory: Git clone git:///pub/scm/linux/kernel/git/torvalds/linux.git
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |