Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 01:50
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Howto git PART 1
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
Karl Godt


Joined: 20 Jun 2010
Posts: 3982
Location: Kiel,Germany

PostPosted: Tue 17 Dec 2013, 18:11    Post subject:  Howto git PART 1
Subject description: Using git
 

As many have recognized, there is

https://github.com/puppylinux-woof-CE

Since there are not many contributors, I would like to give a tutorial about how to use it .

First , you'll need the git package installed, should be part of most common devx_puppy-version.sfs .

Second , open a console urxvt or xterm window in your preferred home directory and type
Code:
mkdir puppylinux-woof-CE.d

Then change into that new created directory :
Code:
cd puppylinux-woof-CE.d


Third - now the git part begins .
Type
Code:
git init
which will answer
initialized empty Git repository in /root/puppylinux-woof-CE.d/.git/

then type
Code:
git remote add woofce https://github.com/puppylinux-woof-CE/woof-CE
which will answer nothing

then type
Code:
git pull woofce
that will download the woof and print into the terminal like :
Code:
remote: Counting objects: 9530, done.
remote: Compressing objects: 100% (4818/4818), done.
remote: Total 9530 (delta 3973), reused 9071 (delta 3531)
Receiving objects: 100% (9530/9530), 19.89 MiB | 388.00 KiB/s, done.
Resolving deltas: 100% (3973/3973), done.
From https://github.com/puppylinux-woof-CE/woof-CE
 * [new branch]      firmware   -> woofce/firmware
 * [new branch]      master     -> woofce/master
 * [new branch]      testing    -> woofce/testing
From https://github.com/puppylinux-woof-CE/woof-CE
 * [new tag]         0.1        -> 0.1
 * [new tag]         woof-CE-0.1 -> woof-CE-0.1
You asked to pull from the remote 'woofce', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.


Fourth , it ineeds to initialize the branches :
Code:
git checkout firmware
will answer
Branch firmware set up to track remote branch firmware from woofce.
Switched to a new branch 'firmware'


and in the filer window you will see the created file and folder tree .

This has to be done for master and testing branches, too :
Code:
git checkout testing

Branch testing set up to track remote branch testing from woofce.
Switched to a new branch 'testing'

Code:
 git checkout master

Branch master set up to track remote branch master from woofce.
Switched to a new branch 'master'



#*** END of LESSON PART 1

Questions ?
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3982
Location: Kiel,Germany

PostPosted: Tue 17 Dec 2013, 20:31    Post subject:  

Continues here :
Howto git PART 2

_________________
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal Razz
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11180
Location: Arizona USA

PostPosted: Tue 17 Dec 2013, 21:34    Post subject:  

Thanks for the How-To. Maybe the reason there aren't many contributors is that very few people know what git is or what it might be good for. For sure I don't have a clue. Confused
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3982
Location: Kiel,Germany

PostPosted: Tue 17 Dec 2013, 22:36    Post subject:  

Flash wrote:
Thanks for the How-To. Maybe the reason there aren't many contributors is that very few people know what git is or what it might be good for. For sure I don't have a clue. Confused

Yup, for the average user means git, svn or cvs are just tools to download something that just does never compile anyway .

Smile
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 1895

PostPosted: Wed 18 Dec 2013, 01:47    Post subject:  

Flash wrote:
Thanks for the How-To. Maybe the reason there aren't many contributors is that very few people know what git is or what it might be good for. For sure I don't have a clue. Confused


Git is a versioning system. ie it keeps track of the changes you make in a file or in a folder so you can know what is changed and why, and provide and easy way to go back if something is wrong or identify what exactly generated a problem.
There are many of these system. svn, mercurial and git are the most used. BarryK himself first created bones and then used fossil to track changes in woof development.
Git is arguably the most powerful of all and geared much more for collaboration with a lot of new features. The linux kernel and many other major projects use it.
Github is a web repository and interface for git-based projects, like woof-CE.

Oversimplifying, for the avid puppean it means in that instead of suggesting specific code changes in the forum can do that in git/github and a) make the life of a pupplet developer easier and b) get his/her name on the record. Wink
For the pupplet developer, it means that whatever changes where made in the woof code can be shared with all the other developers easily and advance puppy in general.

In a nutshell, is something that makes it easy and efficient for people to truly collaborate in a project (in puppy "community edition" for example)

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 543
Location: Brisbane, Australia

PostPosted: Sun 19 Oct 2014, 15:33    Post subject:  

deleted
gyro
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 487
Location: The other Mr. 305

PostPosted: Tue 11 Nov 2014, 22:54    Post subject:  

Steps above lead to "Unable to Access 'https://github.com/puppylinux-woof-CE/woor-CE/': Problem with the SSL CA cert (path? access rights?)

Are others seeing this issue?
Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 536
Location: El salvador

PostPosted: Wed 12 Nov 2014, 00:08    Post subject:  

slavvo67
I use this script by D-coy
Code:
#!/bin/sh
#Script para automatizar configuración de git y clonar repositorios remotos
#27122013 Escritor por D-coy
#27122013, GPL3 (/usr/share/doc/legal)
#27122013 nilsonmorales lineas de ayuda

# Configure user and mail

echo -n 'Enter your User: '
read user
if git config --global user.name $user 2>/dev/null ; then
git config --global user.name $user
     
echo -n 'Enter your Mail: '
read mail
git config --global user.email $mail

#General Config
     
git config --global core.editor geany
git config --global core.pager ''
git config --global color.ui true
git config --global http.sslVerify false
git config --global push.default matching
git config --global push.default simple
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
echo -n "Do you want to clone a git project? s/n: "
read clone
if [ "$clone" == "s" ]; then

#Type repo/project link
#Example: https://github.com/nilsonmorales/Badass

echo -n "URL to clone: "
read repo
git clone $repo
fi
else
echo 'You need "git" installed...'   
exit
fi


The git config --global http.sslVerify false line help me to pass the SSL CA cert

_________________
My blog


Back to top
View user's profile Send private message MSN Messenger 
gyro

Joined: 28 Oct 2008
Posts: 543
Location: Brisbane, Australia

PostPosted: Wed 12 Nov 2014, 07:44    Post subject:  

slavvo67 wrote:
Steps above lead to "Unable to Access 'https://github.com/puppylinux-woof-CE/woor-CE/': Problem with the SSL CA cert (path? access rights?)

Are others seeing this issue?
Yes.
After
Code:
git init
enter the following command
Code:
git config --global http.sslverify false
as alluded to by nilsonmorales.

gyro
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0822s ][ Queries: 11 (0.0066s) ][ GZIP on ]