Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Programming \ Git and GitHub use of Eclipse and Android Studio     - LAN Deployment Docker-- from scratch to create your own private warehouse Docker (Linux)

- In-depth summary of the PHP core of object-oriented (Programming)

- Ora-00600 [fast hot Atkins soft _ that _ Oh, of course not _less_ profile] (Database)

- To install the latest version of the EPEL on CentOS 5.x or 6.x (Linux)

- Use Python to perform system commands common usage (Programming)

- Installed in the desktop version of Ubuntu Unity Tweak Tool (Linux)

- Use the TC flow control test under Linux (Linux)

- How to remove the files inside the privacy of data on Linux (Linux)

- Ubuntu update bug fixes Daquan (Linux)

- Ubuntu 14.04 solved using MyEclipse 10.7 flash back (Linux)

- AWR Report (Database)

- Top command: the Task Manager under linux (Linux)

- Android custom controls create the simplest skid menu in the history (Programming)

- SQL Server 2012 failover looksalive check and is alive check (Database)

- To install PostgreSQL 9.4 (Database)

- grep command Series: How to Use the grep command in Linux / UNIX (Linux)

- How to install Eclipse Luna IDE on CentOS 7 / RHEL 7 (Linux)

- Singleton (Linux)

- SSH keys using login and password to log prohibited practice (Linux)

- Detailed use Zabbix monitoring Nginx (Server)

  Git and GitHub use of Eclipse and Android Studio
  Add Date : 2017-08-31      
  1.Eclipse use

1.1. Creating a local project and submit a remote repository library

1. Install the plug-in ecliplse the git;

Ecliplse the plug-in installation Address:
Egit - http://download.eclipse.org/egit/updates
2. Create a local project to be uploaded as an empty library in github;
3. Right-click the project in the local library -> team-> share Project-> Git;
4. Click the "use or create repository in parent folder of project";
5. Then click "create repository", and then click Finish;
6. The local library has been built at the moment, you need to submit a file to be submitted to the local library:
Right-click in the local project -> team-> commit-> select the file you want to submit and add comments -> Click Submit commit such local library has been completed;
7. The library will be submitted to the local push to a remote repository:

1. Right-click the project -> team-> remote-> push
2 Fill in the url github project, and fill user and password
3 Click next
4 Select and add source ref
5 Click next if there are no conflicts file, click finish
6push successful, pushed to ... dialog box will pop up.

1.2. Remote library project to obtain and modify Submit

1. Switch eclipse view to the next git repository;
2. Click clone git repository:

User Settings git project location and choose to use the ssh connection, use https connection here, then there is an exception if you are using ssh connection will not happen this anomaly;

3. Select Branch branch;
4. Select the location into a local directory;
5. The import was successful.

2.Android Studio use

2.1. Create a local repository to github and Share

Mode 1: studio interface
1. Configure git.exe path: Setting-> Version Control-> Git click Test After setting the test, the pop-up version, the configuration is successful;
2. Configure github account: Setting-> Version Control-> GitHub;
3. Select the item you want to share, select the menu bar -> VCS-> Import into VersionControl-> Share project on Github;
4. A pop-up box to set the name and description repository library settings;
5. Select the file you want to commit to github;
6. Choose to commit and push.

Method 2: Command form
1. Open git bash, to push into the project directory;
2. Create an empty library gitHub;
3. Enter the following command in the git bash;

1.git init initializes a local library;
2. * Set some unwanted add and commit files .gitignore in;
3.git add all the files to be added to the committed state.;
4.git commit -m "submit description" to add the files to the local library;
5.git push -u origin master initial submission.

git push origin master, which means that the current upload local branch code to the master branch. git push is to upload all the local branches of the code corresponding to the remote branch

2.2.clone github project on local

1. Open the git bash into the directory where you saved the project to clone;
2. Enter the command: git clone + ssh clone link on github;
3. If you id_rsa file has a password, enter the password after the start of clone.

3.git additional tips

3.1. Push resolve conflict

When people developed in collaboration inevitably lead to conflicts push updates to the server, so it is necessary to resolve the conflict and the latest version of the server-side before pushing local warehouse. Pull operation is to update the server-side to win over local warehouses combined, resolve merge conflicts, it can successfully push to the branch server.

1.A modified the file server 1, and the first push to the server;
2.B also modify a file server 1, and pull to combine local and remote repository, there is a file conflict, git merge itself;
3. Merge files can not be submitted directly, right conflicted file -> team-> merge tool;
4. Select the file with the latest version of the local server and compare;
5. Modify file conflict;
6. After the conflict resolution is completed, right-File Team-> add to index the file again added to the index and can push to the server;
7.A can now pull the file server to the local library, which completed a two collaborative development.
3.2. Reset function

Resetting the current branch to a specified location commit record, index and working tree unchanged;
Resetting the current branch to a specified location commit record, the index is updated, the same working tree;
Resetting the current branch to a specified location commit record, index and working tree is updated.
- Ubuntu 14.04 to install file editor KKEdit 0.1.5 version (Linux)
- Java 8 Lambda principle analysis (Programming)
- Docker improve safety (Server)
- Linux Detailed instructions alias settings (Linux)
- Applications Linux leap second problem caused (Linux)
- CentOS 5.11 Open VNC access (Linux)
- Security basics: simple analytical framework for Linux system firewall (Linux)
- Use Oracle Data Guard to complete cross-platform database migration cases (Database)
- Ubuntu 14.04 / 14.10 how to install Mate 1.10.0 (Linux)
- Ubuntu server 8.04 Firewall Guide (Linux)
- Installation Mesos + Marathon + Zookeeper under CentOS 7 (Server)
- Math objects easily overlooked but very convenient method --JavaScript (Programming)
- Linux Systems Getting Started Learning: Configuration PCI passthrough on a virtual machine (Linux)
- JavaScript closures and the scope chain (Programming)
- How do I upgrade to Ubuntu 15.04 (Beta) (Linux)
- Ubuntu 14.04 modify environment variables (Linux)
- CentOS installation Percona Server 5.5.42 compiling problem solve one case (Linux)
- jdbc Oracle database connection string writing pluggable (Database)
- Five kinds of IO Model under Linux (Programming)
- Zabbix monitoring tool deployment under Ubuntu server (Server)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.