KaderTarlan

BlogCan

Octopress Blogunu Taşıma

Octopress Blogunuzun olduğu bilgisayarınız çöktü veya kullanmıyorsunuz yeni bilgisayarınıza Blogunuzu taşımak istediğiniz zaman kullanmamız gereken kodlar olacak. Konsoldan masaüstünüzdeki Octopress dosyanızın içine girdiğiniz zaman daha önceden kullandığımız

$rake deploy

kodunu çalıştırdığımız zaman;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
  octopress git:(source) rake deploy
## Generating Site with Jekyll
identical source/stylesheets/screen.css
Configuration from /home/kader/Dropbox/octopress/_config.yml
Building site: source -> public
Successfully generated site: source -> public
## Deploying branch to Github Pages 
## Pulling any updates from Github Pages 
cd _deploy
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

cd -
rm -rf _deploy/javascripts
rm -rf _deploy/atom.xml
rm -rf _deploy/sitemap.xml
rm -rf _deploy/blog
rm -rf _deploy/assets
rm -rf _deploy/favicon.png
rm -rf _deploy/stylesheets
rm -rf _deploy/robots.txt
rm -rf _deploy/index.html
rm -rf _deploy/images

## Copying public to _deploy
cp -r public/. _deploy
cd _deploy

## Committing: Site updated at 2014-12-18 01:19:52 UTC
[master 13a3073] Site updated at 2014-12-18 01:19:52 UTC
 1 file changed, 1 insertion(+), 1 deletion(-)

## Pushing generated _deploy website
Username for 'https://github.com': kadertarlan
Password for 'https://kadertarlan@github.com':
To https://github.com/kadertarlan/kadertarlan.github.io
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/kadertarlan/kadertarlan.github.io'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

## Github Pages deploy complete
cd -

Kodumuzdaki çıktı bu şekilde oluyor. Bu sorunu çözmek için;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# _deploy dizinimize giriyoruz

  octopress git:(source) cd _deploy

#aşağıdaki kodu yazıyoruz

  _deploy git:(master) git push origin master -f
Username for 'https://github.com': kadertarlan
Password for 'https://kadertarlan@github.com':
Counting objects: 20, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (17/17), done.
Writing objects: 100% (20/20), 2.22 KiB | 0 bytes/s, done.
Total 20 (delta 11), reused 0 (delta 0)
To https://github.com/kadertarlan/kadertarlan.github.io
 + 02bdb16...13a3073 master -> master (forced update)
  _deploy git:(master) cd..

# rake gen_deploy diyoruz

  octopress git:(source) rake gen_deploy
## Generating Site with Jekyll
identical source/stylesheets/screen.css
Configuration from /home/kader/Dropbox/octopress/_config.yml
Building site: source -> public
Successfully generated site: source -> public
## Deploying branch to Github Pages 
## Pulling any updates from Github Pages 
cd _deploy
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

cd -

rm -rf _deploy/javascripts
rm -rf _deploy/atom.xml
rm -rf _deploy/sitemap.xml
rm -rf _deploy/blog
rm -rf _deploy/assets
rm -rf _deploy/favicon.png
rm -rf _deploy/stylesheets
rm -rf _deploy/robots.txt
rm -rf _deploy/index.html
rm -rf _deploy/images

## Copying public to _deploy
cp -r public/. _deploy
cd _deploy

## Committing: Site updated at 2014-12-18 01:24:31 UTC
[master 27909f8] Site updated at 2014-12-18 01:24:31 UTC
 1 file changed, 1 insertion(+), 1 deletion(-)

## Pushing generated _deploy website
Username for 'https://github.com': kadertarlan
Password for 'https://kadertarlan@github.com':
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 330 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
To https://github.com/kadertarlan/kadertarlan.github.io
   13a3073..27909f8  master -> master

## Github Pages deploy complete
cd -

Böylece problemimizin üstesinden geliyoruz.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#tekrardan rake deploy yazıyoruz

  octopress git:(source)  rake deploy
## Deploying branch to Github Pages 
## Pulling any updates from Github Pages 
cd _deploy
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

cd -
rm -rf _deploy/javascripts
rm -rf _deploy/atom.xml
rm -rf _deploy/sitemap.xml
rm -rf _deploy/blog
rm -rf _deploy/assets
rm -rf _deploy/favicon.png
rm -rf _deploy/stylesheets
rm -rf _deploy/robots.txt
rm -rf _deploy/index.html
rm -rf _deploy/images

## Copying public to _deploy
cp -r public/. _deploy
cd _deploy

## Committing: Site updated at 2014-12-18 01:34:51 UTC
On branch master
nothing to commit, working directory clean

Herşey yolunda !