Kayıtlar

github etiketine sahip yayınlar gösteriliyor

Git, GitHub

Git - Distributed Version Control System GitHub - A web site that you can upload your repositories online. rebase -You can reorder commits simply by changing their order -You can choose to completely omit some commits. This is designated by pick -- toggling pick off means you want to drop the commit. -Lastly, it allows you to combine commits. git rebase -i HEAD~4 ^ goes parent commit git checkout bugFix^ ~ move a lot of parent commit instead of going one parent commit git branch -f master HEAD~3 moves (by force) the master branch to three parents behind HEAD revert - In order to reverse changes and share those reversed changes with others. git revert HEAD reset - reverts changes by moving a branch reference backwards in time to an older commit. git cherry-pick <Commit1> <Commit2> <...> you would like to copy a series of commits below your current location git cherry-pick c2 c4

Github - SSH Authentication Commands

SSH Authentication Commands Command Listing cd ~ cd .ssh mkdir .ssh cd .ssh pwd ssh-keygen -t rsa -C "jason@jasongtaylor.com" mate id_rsa.pub ssh -T git@github.com Command Reference Generating an SSH Key ssh-keygen -t rsa -C "your.name@your-company.com" Use your actual email address in the example above. Verify SSH authentication ssh -T git@github.com Above command uses  ssh  to connect to GitHub over the SSH protocol.

Github query URL (using Uri) and get the response data in Android

/* These utilities will be used to communicate with the network.*/ public class NetworkUtils { final static String GITHUB_BASE_URL = "https://api.github.com/search/repositories" ; final static String PARAM_QUERY = "q" ; /** The sort field. Default: results are sorted by best match * if no field is specified. */ final static String PARAM_SORT = "sort" ; final static String sortBy = "stars" ; /** * Builds the URL used to query Github. * @param githubSearchQuery The keyword that will be queried for. * @return The URL to use to query the weather server. */ public static URL buildUrl(String githubSearchQuery) { // To build the proper Github query URL Uri builtUri = Uri. parse ( GITHUB_BASE_URL ) .buildUpon() .appendQueryParameter( PARAM_QUERY ,githubSearchQuery) .appendQueryPara...

Fork the repository and clone your fork

You could make your changes directly to the master branch in your fork, but when contributing to a public repository, it’s standard practice to make the changes in a non-master branch within the fork. This way, you can easily keep your master branch up-to-date with master of the original repository, and merge changes from master into your branch when you are ready. Note for Windows Users:  The story has grown so large that it exceeds Windows' path length limit. If you encounter an error when cloning you can work around it by modifying a configuration setting. Run this command in git bash:  git config --system core.longpaths true .