BitShares Forum

Main => Technical Support => Topic started by: 38PTSWarrior on August 23, 2014, 01:24:56 am

Title: git checkout how-to for Linux
Post by: 38PTSWarrior on August 23, 2014, 01:24:56 am
Hi, I don't know how to do the git checkout command. 1000 thx!
Title: Re: git checkout how-to for Linux
Post by: xeroc on August 23, 2014, 08:28:04 am
checkout the FULL explanation
http://wiki.bitshares.org/index.php/BuildInstructionsBitSharesX

however, building from source is for 'advanced users' but I realize that there is no binary for linux users .. we should quickly change that
Title: Re: git checkout how-to for Linux
Post by: 38PTSWarrior on August 23, 2014, 12:23:34 pm
I know these instructions, but I always wonder what this means:


"For Linux users, remember to checkout the tag 0.4.7 first"


git clone https://github.com/dacsunlimited/bitsharesx.git
git checkout 0.4.7

Do I have to go to the bitsharesx folder in the terminal and then type "git checkout 0.4.7".

Or maybe a better question: How can I see the version while running the client. I cannot find a command, thanks!
Title: Re: git checkout how-to for Linux
Post by: xeroc on August 23, 2014, 12:45:08 pm
git clone https://github.com/dacsunlimited/bitsharesx.git
git checkout 0.4.7

Do I have to go to the bitsharesx folder in the terminal and then type "git checkout 0.4.7".
Basically this is what you need to do .. yes

Or maybe a better question: How can I see the version while running the client. I cannot find a command, thanks!

Not really .. if you run "about" in the console you can see your git-revision which is a longer string
mine looks like

Code: [Select]
{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "10 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "37 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 09:59:29"
}
Title: Re: git checkout how-to for Linux
Post by: 38PTSWarrior on August 23, 2014, 12:59:16 pm
Thanks, so now I will update to 0.4.7 by doing:

Delete bitsharesx and everything but the wallet folder of BitShares X (I have made a wallet backup with wallet_export_to_json <json_filename>)

Go to terminal
git clone https://github.com/dacsunlimited/bitsharesx.git
cd bitsharesx
git checkout 0.4.7
git submodule init
git submodule update
cmake .
make

Correct?
Title: Re: git checkout how-to for Linux
Post by: svk on August 23, 2014, 01:45:22 pm
Thanks, so now I will update to 0.4.7 by doing:

Delete bitsharesx and everything but the wallet folder of BitShares X (I have made a wallet backup with wallet_export_to_json <json_filename>)

Go to terminal
git clone https://github.com/dacsunlimited/bitsharesx.git
cd bitsharesx
git checkout 0.4.7
git submodule init
git submodule update
cmake .
make

Correct?
I do the same thing, except for deleting the old directory. I clone into a new one with the version name, and keep the old one for a while just in case..

I compile only the client, using "make bit shares_client"
Title: Re: git checkout how-to for Linux
Post by: 38PTSWarrior on August 23, 2014, 01:56:03 pm
You gave me some good info, thx!
I could not wait for an answer and started already, almost at the 78% peak..

Next time I will use your tips. I guess it saves tons of time to only make bitshares_client.
Title: Re: git checkout how-to for Linux
Post by: Riverhead on August 23, 2014, 04:32:57 pm
Go to your source directory of your previous version (mine is/home/river/github/bitsharesx) and type:
git pull
This just pull the delta
git checkout 0.4.6
./setenv.sh
git submodule init
git submodule update
cmake .
make
Title: Re: git checkout how-to for Linux
Post by: Riverhead on August 23, 2014, 04:38:37 pm



I compile only the client, using "make bit shares_client"

Will that capture changes in the tool kit?
Title: Re: git checkout how-to for Linux
Post by: 38PTSWarrior on August 23, 2014, 07:32:31 pm
When I do git pull this comes:

bitsharesx$ git pull
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>


Should I put something after git pull?
Title: Re: git checkout how-to for Linux
Post by: xeroc on August 23, 2014, 07:44:40 pm
get the repo first:

git clone https://github.com/dacsunlimited/bitsharesx.git

once you have it you can update it with
git pull
Title: Re: git checkout how-to for Linux
Post by: 38PTSWarrior on August 23, 2014, 07:46:54 pm
wait, I found it out :D
git pull https://github.com/dacsunlimited/bitsharesx.git
Title: Re: git checkout how-to for Linux
Post by: xeroc on August 23, 2014, 08:58:04 pm
Ah .. I know see your issue ..

git pull origin master
is what you want to do
or even better
git pull origin 0.4.7
Title: Re: git checkout how-to for Linux
Post by: archLinuxUser on August 24, 2014, 05:16:37 am

I asked in another thread, but I think this is the appropriate thread to ask in.

How can I find out if I'm running the 0.4.7 client on Arch Linux OS?

I had just built from git about 10 minutes ago and I can't seem to see the version 0.4.7 anywhere.  I don't have good eyes, so it could be I'm just missing it.

Code: [Select]
>> about

{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "27 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "54 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 21:51:59"
}
Title: Re: git checkout how-to for Linux
Post by: bitder on August 24, 2014, 05:47:33 am
You are running 0.4.7
The about output shows that it's commit 987d55167097aceab2fdf7ba98bc6ff0c255378d which is tagged in the git repo as 0.4.7
You can use gitk to view the commits and tags.




I asked in another thread, but I think this is the appropriate thread to ask in.

How can I find out if I'm running the 0.4.7 client on Arch Linux OS?

I had just built from git about 10 minutes ago and I can't seem to see the version 0.4.7 anywhere.  I don't have good eyes, so it could be I'm just missing it.

Code: [Select]
>> about

{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "27 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "54 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 21:51:59"
}
Title: Re: git checkout how-to for Linux
Post by: archLinuxUser on August 24, 2014, 06:10:01 am
Cool!  Thanks for the info!

You are running 0.4.7
The about output shows that it's commit 987d55167097aceab2fdf7ba98bc6ff0c255378d which is tagged in the git repo as 0.4.7
You can use gitk to view the commits and tags.




I asked in another thread, but I think this is the appropriate thread to ask in.

How can I find out if I'm running the 0.4.7 client on Arch Linux OS?

I had just built from git about 10 minutes ago and I can't seem to see the version 0.4.7 anywhere.  I don't have good eyes, so it could be I'm just missing it.

Code: [Select]
>> about

{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "27 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "54 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 21:51:59"
}
Title: Re: git checkout how-to for Linux
Post by: xeroc on August 24, 2014, 09:43:14 am
(http://i.imgur.com/ye8qwV2.png)
The number (or at least the first digits of it) is located on the left side of the release below the tag that says 0.4.7
Title: Re: git checkout how-to for Linux
Post by: 38PTSWarrior on August 24, 2014, 10:08:55 am
I found a funny interview where Linus Torvalds talks about git :D
http://typicalprogrammer.com/linus-torvalds-goes-off-on-linux-and-git/
Title: Re: git checkout how-to for Linux
Post by: xeroc on August 24, 2014, 11:26:47 am
I found a funny interview where Linus Torvalds talks about git :D
http://typicalprogrammer.com/linus-torvalds-goes-off-on-linux-and-git/
Quote
I’m not sure. It’s getting hard to predict the next technology fashion. I have a text editor I’ve been using myself that is so complicated it makes VIM look like Notepad — maybe I’ll release that.
Wait what??
Title: Re: git checkout how-to for Linux
Post by: Riverhead on August 24, 2014, 02:07:00 pm
I found a funny interview where Linus Torvalds talks about git :D
http://typicalprogrammer.com/linus-torvalds-goes-off-on-linux-and-git/ (http://typicalprogrammer.com/linus-torvalds-goes-off-on-linux-and-git/)
Quote
I’m not sure. It’s getting hard to predict the next technology fashion. I have a text editor I’ve been using myself that is so complicated it makes VIM look like Notepad — maybe I’ll release that.
Wait what??


LOL. I thought text editing was solved. Does it display text in three dimensions so you can literally fork a line of thinking?