From Fedora Project Wiki
Line 2: Line 2:
 
'''Upload the authentication key'''
 
'''Upload the authentication key'''
 
#$ pwd
 
#$ pwd
#: /home/liam
+
#: /home/username
 
#$ ssh-keygen -t rsa
 
#$ ssh-keygen -t rsa
#Get an account and upload the /home/liam/.ssh/id_rsa.pub  to https://admin.fedoraproject.org/accounts/login
+
#Get an account and upload the /home/username/.ssh/id_rsa.pub  to https://admin.fedoraproject.org/accounts/login
 
'''Clone the source code'''
 
'''Clone the source code'''
 
#git clone ssh://git.fedorahosted.org/git/autoqa.git
 
#git clone ssh://git.fedorahosted.org/git/autoqa.git
  
 
'''Configure name and email '''
 
'''Configure name and email '''
#$ git config -f $HOME/.gitconfig user.name "Liam Li"
+
#$ git config -f $HOME/.gitconfig user.name "username"
#$ git config -f $HOME/.gitconfig user.email "lili@redhat.com"
+
#$ git config -f $HOME/.gitconfig user.email "username@youremail.com"
  
 
'''Add files'''
 
'''Add files'''
 
#$ pwd
 
#$ pwd
#: /home/liam/autoqa
+
#: /home/username/autoqa
 
#$ git add tests/anaconda/*
 
#$ git add tests/anaconda/*
 
#$ git commit -a
 
#$ git commit -a
 
#$ git pull
 
#$ git pull
#$ git push origin  liam
+
#$ git push origin  username
 
#$ git push ssh://git.fedorahosted.org/git/autoqa.git master
 
#$ git push ssh://git.fedorahosted.org/git/autoqa.git master
#:Enter passphrase for key '/home/liam/.ssh/id_rsa':
+
#:Enter passphrase for key '/home/username/.ssh/id_rsa':
  
 
'''Create named branch'''
 
'''Create named branch'''

Revision as of 06:41, 12 August 2010

Update Auto Install

Upload the authentication key

  1. $ pwd
    /home/username
  2. $ ssh-keygen -t rsa
  3. Get an account and upload the /home/username/.ssh/id_rsa.pub to https://admin.fedoraproject.org/accounts/login

Clone the source code

  1. git clone ssh://git.fedorahosted.org/git/autoqa.git

Configure name and email

  1. $ git config -f $HOME/.gitconfig user.name "username"
  2. $ git config -f $HOME/.gitconfig user.email "username@youremail.com"

Add files

  1. $ pwd
    /home/username/autoqa
  2. $ git add tests/anaconda/*
  3. $ git commit -a
  4. $ git pull
  5. $ git push origin username
  6. $ git push ssh://git.fedorahosted.org/git/autoqa.git master
    Enter passphrase for key '/home/username/.ssh/id_rsa':

Create named branch

  1. Create named branch

More git reference

  1. git tutorial introduction